diff options
author | Paride Legovini <paride.legovini@canonical.com> | 2019-01-30 15:38:56 +0000 |
---|---|---|
committer | Server Team CI Bot <josh.powers+server-team-bot@canonical.com> | 2019-01-30 15:38:56 +0000 |
commit | 94a64529dccebd8fe8c7969370b8696e46023fbd (patch) | |
tree | 24028bb1e5f2ff24a4f605887381c14659f02a67 /cloudinit/sources | |
parent | 8ee294d567c071fff1f9567e968ba73602308192 (diff) | |
download | vyos-cloud-init-94a64529dccebd8fe8c7969370b8696e46023fbd.tar.gz vyos-cloud-init-94a64529dccebd8fe8c7969370b8696e46023fbd.zip |
Resolve flake8 comparison and pycodestyle over-ident issues
Fixes:
- flake8: use ==/!= to compare str, bytes, and int literals
- pycodestyle: E117 over-indented
Diffstat (limited to 'cloudinit/sources')
-rw-r--r-- | cloudinit/sources/DataSourceEc2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceEc2.py b/cloudinit/sources/DataSourceEc2.py index 9ccf2cdc..eb6f27b2 100644 --- a/cloudinit/sources/DataSourceEc2.py +++ b/cloudinit/sources/DataSourceEc2.py @@ -442,7 +442,7 @@ def identify_aws(data): if (data['uuid'].startswith('ec2') and (data['uuid_source'] == 'hypervisor' or data['uuid'] == data['serial'])): - return CloudNames.AWS + return CloudNames.AWS return None |