From f891df345afa57c0c7734e8f04cca9a3d5881778 Mon Sep 17 00:00:00 2001 From: Douglas Jordan Date: Sat, 10 Mar 2018 07:20:08 +0100 Subject: This commit fixes get_hostname on the AzureDataSource. LP: #1754495 --- cloudinit/sources/DataSourceAzure.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cloudinit') diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py index 4bcbf3a4..0bb7fad9 100644 --- a/cloudinit/sources/DataSourceAzure.py +++ b/cloudinit/sources/DataSourceAzure.py @@ -223,6 +223,8 @@ DEF_PASSWD_REDACTION = 'REDACTED' def get_hostname(hostname_command='hostname'): + if not isinstance(hostname_command, (list, tuple)): + hostname_command = (hostname_command,) return util.subp(hostname_command, capture=True)[0].strip() -- cgit v1.2.3