Browse Source

Fix and enable gating on H402

End one-line docstrings with punctuation.
Change them to command style where necessary.

Change-Id: I8ff689c3a2f20d489286f80112c6dc95c97f2f31
changes/90/34990/2
Dirk Mueller 6 years ago
parent
commit
af7ca70e3e

+ 1
- 1
novaclient/tests/test_utils.py View File

@@ -69,7 +69,7 @@ class FindResourceTestCase(test_utils.TestCase):
69 69
         self.manager = FakeManager(None)
70 70
 
71 71
     def test_find_none(self):
72
-        """Test a few non-valid inputs"""
72
+        """Test a few non-valid inputs."""
73 73
         self.assertRaises(exceptions.CommandError,
74 74
                           utils.find_resource,
75 75
                           self.manager,

+ 2
- 2
novaclient/utils.py View File

@@ -47,7 +47,7 @@ def add_arg(f, *args, **kwargs):
47 47
 
48 48
 
49 49
 def bool_from_str(val):
50
-    """Convert a string representation of a bool into a bool value"""
50
+    """Convert a string representation of a bool into a bool value."""
51 51
 
52 52
     if not val:
53 53
         return False
@@ -62,7 +62,7 @@ def bool_from_str(val):
62 62
 
63 63
 
64 64
 def add_resource_manager_extra_kwargs_hook(f, hook):
65
-    """Adds hook to bind CLI arguments to ResourceManager calls.
65
+    """Add hook to bind CLI arguments to ResourceManager calls.
66 66
 
67 67
     The `do_foo` calls in shell.py will receive CLI args and then in turn pass
68 68
     them through to the ResourceManager. Before passing through the args, the

+ 2
- 2
novaclient/v1_1/agents.py View File

@@ -36,7 +36,7 @@ class AgentsManager(base.ManagerWithFind):
36 36
     resource_class = Agent
37 37
 
38 38
     def list(self, hypervisor=None):
39
-        """Lists all agent builds."""
39
+        """List all agent builds."""
40 40
         url = "/os-agents"
41 41
         if hypervisor:
42 42
             url = "/os-agents?hypervisor=%s" % hypervisor
@@ -53,7 +53,7 @@ class AgentsManager(base.ManagerWithFind):
53 53
 
54 54
     def create(self, os, architecture, version,
55 55
                url, md5hash, hypervisor):
56
-        """Creates a new agent build"""
56
+        """Create a new agent build."""
57 57
         body = {'agent': {
58 58
                         'hypervisor': hypervisor,
59 59
                         'os': os,

+ 10
- 10
novaclient/v1_1/contrib/baremetal.py View File

@@ -181,7 +181,7 @@ class BareMetalNodeManager(base.ManagerWithFind):
181 181
     type=int,
182 182
     help='ShellInABox port?')
183 183
 def do_baremetal_node_create(cs, args):
184
-    """Create a baremetal node"""
184
+    """Create a baremetal node."""
185 185
     node = cs.baremetal.create(args.service_host, args.cpus,
186 186
             args.memory_mb, args.local_gb, args.prov_mac_address,
187 187
             pm_address=args.pm_address, pm_user=args.pm_user,
@@ -194,7 +194,7 @@ def do_baremetal_node_create(cs, args):
194 194
     metavar='<node>',
195 195
     help='ID of the node to delete.')
196 196
 def do_baremetal_node_delete(cs, args):
197
-    """Remove a baremetal node and any associated interfaces"""
197
+    """Remove a baremetal node and any associated interfaces."""
198 198
     node = _find_baremetal_node(cs, args.node)
199 199
     cs.baremetal.delete(node)
200 200
 
@@ -216,7 +216,7 @@ def _translate_baremetal_node_keys(collection):
216 216
 
217 217
 
218 218
 def _print_baremetal_nodes_list(nodes):
219
-    """Print the list of baremetal nodes"""
219
+    """Print the list of baremetal nodes."""
220 220
     _translate_baremetal_node_keys(nodes)
221 221
     utils.print_list(nodes, [
222 222
         'ID',
@@ -233,7 +233,7 @@ def _print_baremetal_nodes_list(nodes):
233 233
 
234 234
 
235 235
 def do_baremetal_node_list(cs, _args):
236
-    """Print a list of available baremetal nodes"""
236
+    """Print list of available baremetal nodes."""
237 237
     nodes = cs.baremetal.list()
238 238
     _print_baremetal_nodes_list(nodes)
239 239
 
@@ -244,13 +244,13 @@ def _find_baremetal_node(cs, node):
244 244
 
245 245
 
246 246
 def _print_baremetal_resource(resource):
247
-    """Print the details of a baremetal resource"""
247
+    """Print details of a baremetal resource."""
248 248
     info = resource._info.copy()
249 249
     utils.print_dict(info)
250 250
 
251 251
 
252 252
 def _print_baremetal_node_interfaces(interfaces):
253
-    """Print the interfaces of a baremetal node"""
253
+    """Print interfaces of a baremetal node."""
254 254
     utils.print_list(interfaces, [
255 255
         'ID',
256 256
         'Datapath_ID',
@@ -263,7 +263,7 @@ def _print_baremetal_node_interfaces(interfaces):
263 263
      metavar='<node>',
264 264
      help="ID of node")
265 265
 def do_baremetal_node_show(cs, args):
266
-    """Show information about a baremetal node"""
266
+    """Show information about a baremetal node."""
267 267
     node = _find_baremetal_node(cs, args.node)
268 268
     _print_baremetal_resource(node)
269 269
 
@@ -283,7 +283,7 @@ def do_baremetal_node_show(cs, args):
283 283
     metavar='<port_no>',
284 284
     help="OpenFlow port number of interface")
285 285
 def do_baremetal_interface_add(cs, args):
286
-    """Add a network interface to a baremetal node"""
286
+    """Add a network interface to a baremetal node."""
287 287
     bmif = cs.baremetal.add_interface(args.node, args.address,
288 288
             args.datapath_id, args.port_no)
289 289
     _print_baremetal_resource(bmif)
@@ -292,12 +292,12 @@ def do_baremetal_interface_add(cs, args):
292 292
 @utils.arg('node', metavar='<node>', help="ID of node")
293 293
 @utils.arg('address', metavar='<address>', help="MAC address of interface")
294 294
 def do_baremetal_interface_remove(cs, args):
295
-    """Remove a network interface from a baremetal node"""
295
+    """Remove a network interface from a baremetal node."""
296 296
     cs.baremetal.remove_interface(args.node, args.address)
297 297
 
298 298
 
299 299
 @utils.arg('node', metavar='<node>', help="ID of node")
300 300
 def do_baremetal_interface_list(cs, args):
301
-    """List network interfaces associated with a baremetal node"""
301
+    """List network interfaces associated with a baremetal node."""
302 302
     interfaces = cs.baremetal.list_interfaces(args.node)
303 303
     _print_baremetal_node_interfaces(interfaces)

+ 1
- 1
novaclient/v1_1/flavor_access.py View File

@@ -42,7 +42,7 @@ class FlavorAccessManager(base.ManagerWithFind):
42 42
                           'flavor_access')
43 43
 
44 44
     def _list_by_tenant(self, tenant):
45
-        """Print flavor list shared with the given tenant"""
45
+        """Print flavor list shared with the given tenant."""
46 46
         # TODO(uni): need to figure out a proper URI for list_by_tenant
47 47
         # since current API already provided current tenant_id information
48 48
         raise NotImplementedError('Sorry, query by tenant not supported.')

+ 1
- 1
novaclient/v1_1/floating_ip_dns.py View File

@@ -74,7 +74,7 @@ class FloatingIPDNSDomainManager(base.Manager):
74 74
                             'domain_entry')
75 75
 
76 76
     def delete(self, fqdomain):
77
-        """Delete the specified domain"""
77
+        """Delete the specified domain."""
78 78
         self._delete("/os-floating-ip-dns/%s" % _quote_domain(fqdomain))
79 79
 
80 80
 

+ 1
- 1
novaclient/v1_1/hosts.py View File

@@ -57,7 +57,7 @@ class HostManager(base.ManagerWithFind):
57 57
         return self._update("/os-hosts/%s" % host, values)
58 58
 
59 59
     def host_action(self, host, action):
60
-        """Performs an action on a host."""
60
+        """Perform an action on a host."""
61 61
         body = {action: None}
62 62
         url = '/os-hosts/%s/action' % host
63 63
         return self.api.client.post(url, body=body)

+ 4
- 4
novaclient/v1_1/limits.py View File

@@ -6,7 +6,7 @@ from novaclient import base
6 6
 
7 7
 
8 8
 class Limits(base.Resource):
9
-    """A collection of RateLimit and AbsoluteLimit objects"""
9
+    """A collection of RateLimit and AbsoluteLimit objects."""
10 10
 
11 11
     def __repr__(self):
12 12
         return "<Limits>"
@@ -28,7 +28,7 @@ class Limits(base.Resource):
28 28
 
29 29
 
30 30
 class RateLimit(object):
31
-    """Data model that represents a flattened view of a single rate limit"""
31
+    """Data model that represents a flattened view of a single rate limit."""
32 32
 
33 33
     def __init__(self, verb, uri, regex, value, remain,
34 34
                  unit, next_available):
@@ -54,7 +54,7 @@ class RateLimit(object):
54 54
 
55 55
 
56 56
 class AbsoluteLimit(object):
57
-    """Data model that represents a single absolute limit"""
57
+    """Data model that represents a single absolute limit."""
58 58
 
59 59
     def __init__(self, name, value):
60 60
         self.name = name
@@ -68,7 +68,7 @@ class AbsoluteLimit(object):
68 68
 
69 69
 
70 70
 class LimitsManager(base.Manager):
71
-    """Manager object used to interact with limits resource"""
71
+    """Manager object used to interact with limits resource."""
72 72
 
73 73
     resource_class = Limits
74 74
 

+ 3
- 3
novaclient/v1_1/services.py View File

@@ -51,16 +51,16 @@ class ServiceManager(base.ManagerWithFind):
51 51
         return self._list(url, "services")
52 52
 
53 53
     def enable(self, host, binary):
54
-        """Enable the service specified by hostname and binary"""
54
+        """Enable the service specified by hostname and binary."""
55 55
         body = {"host": host, "binary": binary}
56 56
         return self._update("/os-services/enable", body, "service")
57 57
 
58 58
     def disable(self, host, binary):
59
-        """Enable the service specified by hostname and binary"""
59
+        """Disable the service specified by hostname and binary."""
60 60
         body = {"host": host, "binary": binary}
61 61
         return self._update("/os-services/disable", body, "service")
62 62
 
63 63
     def disable_log_reason(self, host, binary, reason):
64
-        """Disable the service with reason"""
64
+        """Disable the service with reason."""
65 65
         body = {"host": host, "binary": binary, "disabled_reason": reason}
66 66
         return self._update("/os-services/disable-log-reason", body, "service")

+ 32
- 32
novaclient/v1_1/shell.py View File

@@ -341,14 +341,14 @@ def do_cloudpipe_list(cs, _args):
341 341
 
342 342
 @utils.arg('project', metavar='<project>', help='Name of the project.')
343 343
 def do_cloudpipe_create(cs, args):
344
-    """Create a cloudpipe instance for the given project"""
344
+    """Create a cloudpipe instance for the given project."""
345 345
     cs.cloudpipe.create(args.project)
346 346
 
347 347
 
348 348
 @utils.arg('address', metavar='<ip address>', help='New IP Address.')
349 349
 @utils.arg('port', metavar='<port>', help='New Port.')
350 350
 def do_cloudpipe_configure(cs, args):
351
-    """Update the VPN IP/port of a cloudpipe instance"""
351
+    """Update the VPN IP/port of a cloudpipe instance."""
352 352
     cs.cloudpipe.update(args.address, args.port)
353 353
 
354 354
 
@@ -627,7 +627,7 @@ def do_flavor_access_remove(cs, args):
627 627
 @utils.arg('project_id', metavar='<project_id>',
628 628
            help='The ID of the project.')
629 629
 def do_scrub(cs, args):
630
-    """Deletes data associated with the project"""
630
+    """Delete data associated with the project."""
631 631
     networks_list = cs.networks.list()
632 632
     networks_list = [network for network in networks_list
633 633
                  if getattr(network, 'project_id', '') == args.project_id]
@@ -1266,7 +1266,7 @@ def do_image_create(cs, args):
1266 1266
 @utils.arg('rotation', metavar='<rotation>',
1267 1267
            help='Int parameter representing how many backups to keep around.')
1268 1268
 def do_backup(cs, args):
1269
-    """Backup a instance by create a 'backup' type snapshot """
1269
+    """Backup a instance by create a 'backup' type snapshot."""
1270 1270
     _find_server(cs, args.server).backup(args.name,
1271 1271
                                          args.backup_type,
1272 1272
                                          args.rotation)
@@ -1789,7 +1789,7 @@ def do_floating_ip_pool_list(cs, _args):
1789 1789
 @utils.arg('--host', dest='host', metavar='<host>', default=None,
1790 1790
            help='Filter by host')
1791 1791
 def do_floating_ip_bulk_list(cs, args):
1792
-    """List all floating ips"""
1792
+    """List all floating ips."""
1793 1793
     utils.print_list(cs.floating_ips_bulk.list(args.host), ['project_id',
1794 1794
                                                             'address',
1795 1795
                                                             'instance_uuid',
@@ -1803,13 +1803,13 @@ def do_floating_ip_bulk_list(cs, args):
1803 1803
 @utils.arg('--interface', metavar='<interface>', default=None,
1804 1804
            help='Interface for new Floating IPs')
1805 1805
 def do_floating_ip_bulk_create(cs, args):
1806
-    """Bulk create floating ips by range"""
1806
+    """Bulk create floating ips by range."""
1807 1807
     cs.floating_ips_bulk.create(args.ip_range, args.pool, args.interface)
1808 1808
 
1809 1809
 
1810 1810
 @utils.arg('ip_range', metavar='<range>', help='Address range to delete')
1811 1811
 def do_floating_ip_bulk_delete(cs, args):
1812
-    """Bulk delete floating ips by range"""
1812
+    """Bulk delete floating ips by range."""
1813 1813
     cs.floating_ips_bulk.delete(args.ip_range)
1814 1814
 
1815 1815
 
@@ -2143,7 +2143,7 @@ def do_secgroup_delete_group_rule(cs, args):
2143 2143
 @utils.arg('--pub_key',
2144 2144
     help=argparse.SUPPRESS)
2145 2145
 def do_keypair_add(cs, args):
2146
-    """Create a new key pair for use with instances"""
2146
+    """Create a new key pair for use with instances."""
2147 2147
     name = args.name
2148 2148
     pub_key = args.pub_key
2149 2149
 
@@ -2164,7 +2164,7 @@ def do_keypair_add(cs, args):
2164 2164
 
2165 2165
 @utils.arg('name', metavar='<name>', help='Keypair name to delete.')
2166 2166
 def do_keypair_delete(cs, args):
2167
-    """Delete keypair by its name"""
2167
+    """Delete keypair given by its name."""
2168 2168
     name = args.name
2169 2169
     cs.keypairs.delete(name)
2170 2170
 
@@ -2224,7 +2224,7 @@ def do_rate_limits(cs, args):
2224 2224
            help='Usage range end date, ex 2012-01-20 (default: tomorrow) ',
2225 2225
            default=None)
2226 2226
 def do_usage_list(cs, args):
2227
-    """List usage data for all tenants"""
2227
+    """List usage data for all tenants."""
2228 2228
     dateformat = "%Y-%m-%d"
2229 2229
     rows = ["Tenant ID", "Instances", "RAM MB-Hours", "CPU Hours",
2230 2230
             "Disk GB-Hours"]
@@ -2271,7 +2271,7 @@ def do_usage_list(cs, args):
2271 2271
            default=None,
2272 2272
            help='UUID or name of tenant to get usage for.')
2273 2273
 def do_usage(cs, args):
2274
-    """Show usage data for a single tenant"""
2274
+    """Show usage data for a single tenant."""
2275 2275
     dateformat = "%Y-%m-%d"
2276 2276
     rows = ["Instances", "RAM MB-Hours", "CPU Hours", "Disk GB-Hours"]
2277 2277
 
@@ -2321,7 +2321,7 @@ def do_usage(cs, args):
2321 2321
     default='cert.pem',
2322 2322
     help='Filename for the X.509 certificate [Default: cert.pem]')
2323 2323
 def do_x509_create_cert(cs, args):
2324
-    """Create x509 cert for a user in tenant"""
2324
+    """Create x509 cert for a user in tenant."""
2325 2325
 
2326 2326
     if os.path.exists(args.pk_filename):
2327 2327
         raise exceptions.CommandError("Unable to write privatekey - %s exists."
@@ -2351,7 +2351,7 @@ def do_x509_create_cert(cs, args):
2351 2351
            default='cacert.pem',
2352 2352
            help='Filename to write the x509 root cert.')
2353 2353
 def do_x509_get_root_cert(cs, args):
2354
-    """Fetches the x509 root cert."""
2354
+    """Fetch the x509 root cert."""
2355 2355
     if os.path.exists(args.filename):
2356 2356
         raise exceptions.CommandError("Unable to write x509 root cert - \
2357 2357
                                       %s exists." % args.filename)
@@ -2365,7 +2365,7 @@ def do_x509_get_root_cert(cs, args):
2365 2365
 @utils.arg('--hypervisor', metavar='<hypervisor>', default=None,
2366 2366
            help='type of hypervisor.')
2367 2367
 def do_agent_list(cs, args):
2368
-    """List all builds"""
2368
+    """List all builds."""
2369 2369
     result = cs.agents.list(args.hypervisor)
2370 2370
     columns = ["Agent_id", "Hypervisor", "OS", "Architecture", "Version",
2371 2371
                'Md5hash', 'Url']
@@ -2381,7 +2381,7 @@ def do_agent_list(cs, args):
2381 2381
 @utils.arg('hypervisor', metavar='<hypervisor>', default='xen',
2382 2382
            help='type of hypervisor.')
2383 2383
 def do_agent_create(cs, args):
2384
-    """Creates a new agent build."""
2384
+    """Create new agent build."""
2385 2385
     result = cs.agents.create(args.os, args.architecture,
2386 2386
                               args.version, args.url,
2387 2387
                               args.md5hash, args.hypervisor)
@@ -2390,7 +2390,7 @@ def do_agent_create(cs, args):
2390 2390
 
2391 2391
 @utils.arg('id', metavar='<id>', help='id of the agent-build')
2392 2392
 def do_agent_delete(cs, args):
2393
-    """Deletes an existing agent build."""
2393
+    """Delete existing agent build."""
2394 2394
     cs.agents.delete(args.id)
2395 2395
 
2396 2396
 
@@ -2399,7 +2399,7 @@ def do_agent_delete(cs, args):
2399 2399
 @utils.arg('url', metavar='<url>', help='url')
2400 2400
 @utils.arg('md5hash', metavar='<md5hash>', help='md5hash')
2401 2401
 def do_agent_modify(cs, args):
2402
-    """Modify an existing agent build."""
2402
+    """Modify existing agent build."""
2403 2403
     result = cs.agents.update(args.id, args.version,
2404 2404
                               args.url, args.md5hash)
2405 2405
     utils.print_dict(result._info)
@@ -2515,7 +2515,7 @@ def _print_aggregate_details(aggregate):
2515 2515
     action='store_true',
2516 2516
     help=argparse.SUPPRESS)
2517 2517
 def do_live_migration(cs, args):
2518
-    """Migrates a running instance to a new machine."""
2518
+    """Migrate running instance to a new machine."""
2519 2519
     _find_server(cs, args.server).live_migrate(args.host,
2520 2520
                                                args.block_migrate,
2521 2521
                                                args.disk_over_commit)
@@ -2527,7 +2527,7 @@ def do_live_migration(cs, args):
2527 2527
            help='Request the instance be reset to "active" state instead '
2528 2528
            'of "error" state (the default).')
2529 2529
 def do_reset_state(cs, args):
2530
-    """Reset the state of an instance"""
2530
+    """Reset the state of an instance."""
2531 2531
     _find_server(cs, args.server).reset_state(args.state)
2532 2532
 
2533 2533
 
@@ -2555,7 +2555,7 @@ def do_service_list(cs, args):
2555 2555
 @utils.arg('host', metavar='<hostname>', help='Name of host.')
2556 2556
 @utils.arg('binary', metavar='<binary>', help='Service binary.')
2557 2557
 def do_service_enable(cs, args):
2558
-    """Enable the service"""
2558
+    """Enable the service."""
2559 2559
     result = cs.services.enable(args.host, args.binary)
2560 2560
     utils.print_list([result], ['Host', 'Binary', 'Status'])
2561 2561
 
@@ -2565,7 +2565,7 @@ def do_service_enable(cs, args):
2565 2565
 @utils.arg('--reason', metavar='<reason>',
2566 2566
            help='Reason for disabling service.')
2567 2567
 def do_service_disable(cs, args):
2568
-    """Disable the service"""
2568
+    """Disable the service."""
2569 2569
     if args.reason:
2570 2570
         result = cs.services.disable_log_reason(args.host, args.binary,
2571 2571
                                                 args.reason)
@@ -2578,26 +2578,26 @@ def do_service_disable(cs, args):
2578 2578
 
2579 2579
 @utils.arg('fixed_ip', metavar='<fixed_ip>', help='Fixed IP Address.')
2580 2580
 def do_fixed_ip_get(cs, args):
2581
-    """Get info on a fixed ip"""
2581
+    """Retrieve info on a fixed ip."""
2582 2582
     result = cs.fixed_ips.get(args.fixed_ip)
2583 2583
     utils.print_list([result], ['address', 'cidr', 'hostname', 'host'])
2584 2584
 
2585 2585
 
2586 2586
 @utils.arg('fixed_ip', metavar='<fixed_ip>', help='Fixed IP Address.')
2587 2587
 def do_fixed_ip_reserve(cs, args):
2588
-    """Reserve a fixed ip"""
2588
+    """Reserve a fixed IP."""
2589 2589
     cs.fixed_ips.reserve(args.fixed_ip)
2590 2590
 
2591 2591
 
2592 2592
 @utils.arg('fixed_ip', metavar='<fixed_ip>', help='Fixed IP Address.')
2593 2593
 def do_fixed_ip_unreserve(cs, args):
2594
-    """Unreserve a fixed ip"""
2594
+    """Unreserve a fixed IP."""
2595 2595
     cs.fixed_ips.unreserve(args.fixed_ip)
2596 2596
 
2597 2597
 
2598 2598
 @utils.arg('host', metavar='<hostname>', help='Name of host.')
2599 2599
 def do_host_describe(cs, args):
2600
-    """Describe a specific host"""
2600
+    """Describe a specific host."""
2601 2601
     result = cs.hosts.get(args.host)
2602 2602
     columns = ["HOST", "PROJECT", "cpu", "memory_mb", "disk_gb"]
2603 2603
     utils.print_list(result, columns)
@@ -2607,7 +2607,7 @@ def do_host_describe(cs, args):
2607 2607
            help='Filters the list, returning only those '
2608 2608
                 'hosts in the availability zone <zone>.')
2609 2609
 def do_host_list(cs, args):
2610
-    """List all hosts by service"""
2610
+    """List all hosts by service."""
2611 2611
     columns = ["host_name", "service", "zone"]
2612 2612
     result = cs.hosts.list(args.zone)
2613 2613
     utils.print_list(result, columns)
@@ -2651,13 +2651,13 @@ def do_host_action(cs, args):
2651 2651
            default=False,
2652 2652
            help='Generate a single report for all services.')
2653 2653
 def do_coverage_start(cs, args):
2654
-    """Start Nova coverage reporting"""
2654
+    """Start Nova coverage reporting."""
2655 2655
     cs.coverage.start(combine=args.combine)
2656 2656
     print("Coverage collection started")
2657 2657
 
2658 2658
 
2659 2659
 def do_coverage_stop(cs, args):
2660
-    """Stop Nova coverage reporting"""
2660
+    """Stop Nova coverage reporting."""
2661 2661
     out = cs.coverage.stop()
2662 2662
     print("Coverage data file path: %s" % out[-1]['path'])
2663 2663
 
@@ -2674,7 +2674,7 @@ def do_coverage_stop(cs, args):
2674 2674
            default=False,
2675 2675
            help='Generate XML reports instead of text ones.')
2676 2676
 def do_coverage_report(cs, args):
2677
-    """Generate a coverage report"""
2677
+    """Generate coverage report."""
2678 2678
     if args.html == True and args.xml == True:
2679 2679
         raise exceptions.CommandError("--html and --xml must not be "
2680 2680
                                       "specified together.")
@@ -2770,7 +2770,7 @@ def ensure_service_catalog_present(cs):
2770 2770
 
2771 2771
 
2772 2772
 def do_endpoints(cs, _args):
2773
-    """Discover endpoints that get returned from the authenticate services"""
2773
+    """Discover endpoints that get returned from the authenticate services."""
2774 2774
     ensure_service_catalog_present(cs)
2775 2775
     catalog = cs.client.service_catalog.catalog
2776 2776
     for e in catalog['access']['serviceCatalog']:
@@ -2780,7 +2780,7 @@ def do_endpoints(cs, _args):
2780 2780
 @utils.arg('--wrap', dest='wrap', metavar='<integer>', default=64,
2781 2781
            help='wrap PKI tokens to a specified length, or 0 to disable')
2782 2782
 def do_credentials(cs, _args):
2783
-    """Show user credentials returned from auth"""
2783
+    """Show user credentials returned from auth."""
2784 2784
     ensure_service_catalog_present(cs)
2785 2785
     catalog = cs.client.service_catalog.catalog
2786 2786
     utils.print_dict(catalog['access']['user'], "User Credentials",
@@ -3172,7 +3172,7 @@ def do_interface_detach(cs, args):
3172 3172
 
3173 3173
 
3174 3174
 def _treeizeAvailabilityZone(zone):
3175
-    """Build a tree view for availability zones"""
3175
+    """Build a tree view for availability zones."""
3176 3176
     AvailabilityZone = availability_zones.AvailabilityZone
3177 3177
 
3178 3178
     az = AvailabilityZone(zone.manager,

+ 1
- 1
tox.ini View File

@@ -24,6 +24,6 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
24 24
 downloadcache = ~/cache/pip
25 25
 
26 26
 [flake8]
27
-ignore = E12,E711,E721,E712,F841,F811,F821,H302,H306,H402,H403,H404
27
+ignore = E12,E711,E721,E712,F841,F811,F821,H302,H306,H403,H404
28 28
 show-source = True
29 29
 exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build

Loading…
Cancel
Save