diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-06-15 22:50:12 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-06-15 22:50:12 -0400 |
commit | d4b587ebf500ddc2259fffc94a3c69c199c9a427 (patch) | |
tree | 987a743859aadb4bf2ad3daf0cc9e62afc92294c /cloudinit/sources/DataSourceOpenNebula.py | |
parent | 8311e8f7a2d4ad782015c0eb4d22efd0c5a8af0f (diff) | |
download | vyos-cloud-init-d4b587ebf500ddc2259fffc94a3c69c199c9a427.tar.gz vyos-cloud-init-d4b587ebf500ddc2259fffc94a3c69c199c9a427.zip |
fix some errors reported by pylint
pylint --errors-only found several errors. Some of the changes
here represent real errors, others just code that pylint did
not like.
Diffstat (limited to 'cloudinit/sources/DataSourceOpenNebula.py')
-rw-r--r-- | cloudinit/sources/DataSourceOpenNebula.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceOpenNebula.py b/cloudinit/sources/DataSourceOpenNebula.py index 8f85b115..7b3a76b9 100644 --- a/cloudinit/sources/DataSourceOpenNebula.py +++ b/cloudinit/sources/DataSourceOpenNebula.py @@ -104,7 +104,7 @@ class DataSourceOpenNebula(sources.DataSource): def get_hostname(self, fqdn=False, resolve_ip=None): if resolve_ip is None: - if self.dsmode == sources.DSMODE_NET: + if self.dsmode == sources.DSMODE_NETWORK: resolve_ip = True else: resolve_ip = False |