From ff8ce4697b006b116a30f1d4f245892925f82de4 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Jan 06 2021 20:11:51 +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