diff options
author | Samuel Matzek <smatzek@us.ibm.com> | 2017-10-13 15:04:45 -0500 |
---|---|---|
committer | Samuel Matzek <smatzek@us.ibm.com> | 2017-10-13 15:04:45 -0500 |
commit | f6c3c27a49d5cf1c84eec441923f9f4d8c12f3d2 (patch) | |
tree | 484a78543ada1ce35b8a290ef5fc0bad40dfe1be | |
parent | 9ec134996a1162de0d74ef915dc138bbacbcfdf1 (diff) | |
download | trove-f6c3c27a49d5cf1c84eec441923f9f4d8c12f3d2.tar.gz |
Move Pylint ignore
Moev Pylint ignore from code to config.
Change-Id: I95ef8d7a320b633fbfd04f407a6143c8fa9c3f92
-rw-r--r-- | tools/trove-pylint.config | 6 | ||||
-rw-r--r-- | trove/common/context.py | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/tools/trove-pylint.config b/tools/trove-pylint.config index 9248f2f4..970a7ce6 100644 --- a/tools/trove-pylint.config +++ b/tools/trove-pylint.config @@ -1658,6 +1658,12 @@ "unexpected-keyword-arg", "Unexpected keyword argument 'recover_func' in method call", "ResizeVolumeAction._resize_active_volume" + ], + [ + "trove/common/context.py", + "E1101", + "Instance of 'TroveContext' has no 'notification' member", + "TroveContext.to_dict" ] ], "ignored_file_codes": [], diff --git a/trove/common/context.py b/trove/common/context.py index 307a1eb5..6ddc3a6e 100644 --- a/trove/common/context.py +++ b/trove/common/context.py @@ -56,11 +56,6 @@ class TroveContext(context.RequestContext): 'service_catalog': self.service_catalog }) if hasattr(self, 'notification'): - # Disable E1101 to allow us to specify self.notification here. - # The ceilometer notification code relies on this being there but - # we can't have self.notification as some code does - # del context.notification. - # pylint: disable=E1101 serialized = SerializableNotification.serialize(self, self.notification) parent_dict['trove_notification'] = serialized |