From 5562a0834e3ddeaeadc4230135798db11175d26b Mon Sep 17 00:00:00 2001 From: Packit Service Date: Feb 05 2021 06:15:44 +0000 Subject: Apply patch 0005-DataSourceAzure.py-use-hostnamectl-to-set-hostname.patch patch_name: 0005-DataSourceAzure.py-use-hostnamectl-to-set-hostname.patch present_in_specfile: true location_in_specfile: 5 --- diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py index f3c6452..1c214db 100755 --- a/cloudinit/sources/DataSourceAzure.py +++ b/cloudinit/sources/DataSourceAzure.py @@ -258,7 +258,7 @@ def get_hostname(hostname_command='hostname'): def set_hostname(hostname, hostname_command='hostname'): - subp.subp([hostname_command, hostname]) + util.subp(['hostnamectl', 'set-hostname', str(hostname)]) @azure_ds_telemetry_reporter