From a9a4ae4bba71db5e95070aad7009ebdffa7e20eb Mon Sep 17 00:00:00 2001 From: Peter Stachowski Date: Thu, 3 Nov 2016 13:56:41 -0400 Subject: Fix module-instances command Fixed the module-instances command to return a paginated list of instances. Also added a --count_only flag to the command to return a summary of the applied instances based on the MD5 of the module (this is most useful for live_update modules, to see which ones haven't been updated). Also cleaned up the code a bit, putting some methods into files where they made more sense (and would cause less potential collisions during import). Change-Id: I963e0f03875a1b93e2e1214bcb6580c507fa45fe Closes-Bug: #1554900 --- tools/trove-pylint.config | 144 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) (limited to 'tools') diff --git a/tools/trove-pylint.config b/tools/trove-pylint.config index 01ced46f..06031e79 100644 --- a/tools/trove-pylint.config +++ b/tools/trove-pylint.config @@ -1137,6 +1137,78 @@ "Module 'eventlet.green.subprocess' has no 'PIPE' member", "PgDump._execute_postgres_restore" ], + [ + "trove/instance/models.py", + "E1101", + "Class 'DBInstance' has no 'cluster_id' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "E1101", + "Class 'DBInstance' has no 'id' member", + "Instances.load" + ], + [ + "trove/instance/models.py", + "E1101", + "Class 'DBInstance' has no 'id' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "E1101", + "Class 'DBInstance' has no 'tenant_id' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "E1101", + "Class 'DBInstanceModule' has no 'deleted' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "E1101", + "Class 'DBInstanceModule' has no 'instance_id' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "E1101", + "Class 'DBInstanceModule' has no 'md5' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "E1101", + "Class 'DBInstanceModule' has no 'module_id' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "E1101", + "Class 'DBInstanceModule' has no 'updated' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "E1101", + "Class 'DBModule' has no 'id' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "E1101", + "Class 'DBModule' has no 'md5' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "E1101", + "Class 'DBModule' has no 'name' member", + "module_instance_count" + ], [ "trove/instance/models.py", "E1101", @@ -1149,6 +1221,78 @@ "Instance of 'DBInstance' has no 'encrypted_key' member", "DBInstance.key" ], + [ + "trove/instance/models.py", + "no-member", + "Class 'DBInstance' has no 'cluster_id' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "no-member", + "Class 'DBInstance' has no 'id' member", + "Instances.load" + ], + [ + "trove/instance/models.py", + "no-member", + "Class 'DBInstance' has no 'id' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "no-member", + "Class 'DBInstance' has no 'tenant_id' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "no-member", + "Class 'DBInstanceModule' has no 'deleted' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "no-member", + "Class 'DBInstanceModule' has no 'instance_id' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "no-member", + "Class 'DBInstanceModule' has no 'md5' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "no-member", + "Class 'DBInstanceModule' has no 'module_id' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "no-member", + "Class 'DBInstanceModule' has no 'updated' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "no-member", + "Class 'DBModule' has no 'id' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "no-member", + "Class 'DBModule' has no 'md5' member", + "module_instance_count" + ], + [ + "trove/instance/models.py", + "no-member", + "Class 'DBModule' has no 'name' member", + "module_instance_count" + ], [ "trove/instance/models.py", "no-member", -- cgit v1.2.1