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/config/cc_growpart.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/config/cc_growpart.py')
-rw-r--r-- | cloudinit/config/cc_growpart.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cloudinit/config/cc_growpart.py b/cloudinit/config/cc_growpart.py index 859d69f1..40560f11 100644 --- a/cloudinit/config/cc_growpart.py +++ b/cloudinit/config/cc_growpart.py @@ -36,13 +36,13 @@ DEFAULT_CONFIG = { } -def enum(**enums): - return type('Enum', (), enums) +class RESIZE(object): + SKIPPED = "SKIPPED" + CHANGED = "CHANGED" + NOCHANGE = "NOCHANGE" + FAILED = "FAILED" -RESIZE = enum(SKIPPED="SKIPPED", CHANGED="CHANGED", NOCHANGE="NOCHANGE", - FAILED="FAILED") - LOG = logging.getLogger(__name__) |