diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-05-31 13:14:17 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-05-31 13:14:17 -0400 |
commit | 0ce31b75247458b735b1b52dd5985519190d48fb (patch) | |
tree | 7b597c0dbdaf488bf0db72743213a1c627d4bad6 | |
parent | 3f5b6386e80e0b31e6adcb7db1859a115a3184df (diff) | |
download | vyos-cloud-init-0ce31b75247458b735b1b52dd5985519190d48fb.tar.gz vyos-cloud-init-0ce31b75247458b735b1b52dd5985519190d48fb.zip |
use constants for kvm and lx-brand
-rw-r--r-- | cloudinit/sources/DataSourceSmartOS.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/sources/DataSourceSmartOS.py b/cloudinit/sources/DataSourceSmartOS.py index 7c8928b3..d6a9bf28 100644 --- a/cloudinit/sources/DataSourceSmartOS.py +++ b/cloudinit/sources/DataSourceSmartOS.py @@ -577,11 +577,11 @@ def jmc_client_factory( if smartos_type is None: smartos_type = get_smartos_environ(uname_version) - if smartos_type == 'kvm': + if smartos_type == SMARTOS_ENV_KVM: return JoyentMetadataLegacySerialClient( device=serial_device, timeout=serial_timeout, smartos_type=smartos_type) - elif smartos_type == 'lx-brand': + elif smartos_type == SMARTOS_ENV_LX_BRAND: return JoyentMetadataSocketClient(socketpath=metadata_sockfile) raise ValueError("Unknown value for smartos_type: %s" % smartos_type) |