summaryrefslogtreecommitdiff
path: root/boto/pyami
diff options
context:
space:
mode:
authorAustin Marshall <oxtopus@gmail.com>2013-12-18 22:43:32 -0600
committerAustin Marshall <oxtopus@gmail.com>2013-12-18 22:43:32 -0600
commit125a8394143be713e6683bac34d7842421fe8b70 (patch)
tree4f21a53baf018500cb1264718c8d0448a29bd5e2 /boto/pyami
parentdcf3cbd51f5d997eb84a5bf5ec9ff20f322fa44f (diff)
downloadboto-125a8394143be713e6683bac34d7842421fe8b70.tar.gz
Consistent use of identity comparison (`is`/`is not`) for None
Diffstat (limited to 'boto/pyami')
-rw-r--r--boto/pyami/config.py2
-rw-r--r--boto/pyami/installers/ubuntu/ebs.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/boto/pyami/config.py b/boto/pyami/config.py
index 08da6581..ee04157f 100644
--- a/boto/pyami/config.py
+++ b/boto/pyami/config.py
@@ -221,7 +221,7 @@ class Config(ConfigParser.SafeConfigParser):
d = json.loads(item[section])
for attr_name in d.keys():
attr_value = d[attr_name]
- if attr_value == None:
+ if attr_value is None:
attr_value = 'None'
if isinstance(attr_value, bool):
self.setbool(section, attr_name, attr_value)
diff --git a/boto/pyami/installers/ubuntu/ebs.py b/boto/pyami/installers/ubuntu/ebs.py
index 3e5b5c28..95a75c85 100644
--- a/boto/pyami/installers/ubuntu/ebs.py
+++ b/boto/pyami/installers/ubuntu/ebs.py
@@ -219,7 +219,7 @@ class EBSInstaller(Installer):
# Set up the backup cleanup script
minute = boto.config.get('EBS', 'backup_cleanup_cron_minute')
hour = boto.config.get('EBS', 'backup_cleanup_cron_hour')
- if (minute != None) and (hour != None):
+ if (minute is not None) and (hour is not None):
# Snapshot clean up can either be done via the manage module, or via the new tag based
# snapshot code, if the snapshots have been tagged with the name of the associated
# volume. Check for the presence of the new configuration flag, and use the appropriate