cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #04325
[Merge] ~dojordan/cloud-init:fix_azure_hostname into cloud-init:master
Douglas Jordan has proposed merging ~dojordan/cloud-init:fix_azure_hostname into cloud-init:master.
Commit message:
This commit fixes get_hostname on the AzureDataSource.
LP #1754495
Requested reviews:
cloud-init commiters (cloud-init-dev)
For more details, see:
https://code.launchpad.net/~dojordan/cloud-init/+git/cloud-init/+merge/341182
This commit fixes get_hostname on the AzureDataSource.
LP #1754495
--
Your team cloud-init commiters is requested to review the proposed merge of ~dojordan/cloud-init:fix_azure_hostname into cloud-init:master.
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py
index 4bcbf3a..f0a9ef4 100644
--- a/cloudinit/sources/DataSourceAzure.py
+++ b/cloudinit/sources/DataSourceAzure.py
@@ -223,7 +223,7 @@ DEF_PASSWD_REDACTION = 'REDACTED'
def get_hostname(hostname_command='hostname'):
- return util.subp(hostname_command, capture=True)[0].strip()
+ return util.subp((hostname_command,), capture=True)[0].strip()
def set_hostname(hostname, hostname_command='hostname'):
References