diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-05-12 16:52:56 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-05-12 16:52:56 -0400 |
commit | 811f7b5b3c4590ee4a16662db37b1f37541d9822 (patch) | |
tree | 48a886ea0a9857ce353eebe504048e656e1c6e92 /cloudinit/sources/helpers/azure.py | |
parent | e5dff2d8683302845bde78553d09bd34dedfeebd (diff) | |
download | vyos-cloud-init-811f7b5b3c4590ee4a16662db37b1f37541d9822.tar.gz vyos-cloud-init-811f7b5b3c4590ee4a16662db37b1f37541d9822.zip |
fix last flake8 error
Diffstat (limited to 'cloudinit/sources/helpers/azure.py')
-rw-r--r-- | cloudinit/sources/helpers/azure.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/helpers/azure.py b/cloudinit/sources/helpers/azure.py index bbfc283c..63ccf10e 100644 --- a/cloudinit/sources/helpers/azure.py +++ b/cloudinit/sources/helpers/azure.py @@ -221,7 +221,7 @@ class WALinuxAgentShim(object): if 'unknown-245' in line: value = line.strip(' ').split(' ', 2)[-1].strip(';\n"') if value is None: - raise Exception('No endpoint found in DHCP config.') + raise ValueError('No endpoint found in DHCP config.') endpoint_ip_address = WALinuxAgentShim.get_ip_from_lease_value(value) LOG.debug('Azure endpoint found at %s', endpoint_ip_address) return endpoint_ip_address |