Browse Source

rename server name query arg

Change-Id: I0cd8fbf147ea0acf09b3e148162a73995617446a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Doug Hellmann 2 years ago
parent
commit
19303a0504
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      downpour/query.py

+ 3
- 2
downpour/query.py View File

@@ -34,6 +34,7 @@ class ResourceFileEditor:
34 34
         self._resources.servers.append({
35 35
             'name': info.name,
36 36
             'save_state': self._save_state,
37
+            'key_name': info.key_name,
37 38
         })
38 39
 
39 40
     def save(self):
@@ -56,7 +57,7 @@ def register_command(subparsers):
56 57
         help='should the state of the server or volume be saved',
57 58
     )
58 59
     do_query.add_argument(
59
-        '--server',
60
+        '--server-name',
60 61
         action='append',
61 62
         help='pattern to match against server names',
62 63
     )
@@ -66,7 +67,7 @@ def register_command(subparsers):
66 67
 def query_data(cloud, config, args):
67 68
     editor = ResourceFileEditor(args.resource_file, save_state=args.save_state)
68 69
 
69
-    for pattern in args.server:
70
+    for pattern in args.server_name:
70 71
         LOG.info('searching for servers matching pattern %r', pattern)
71 72
         for server_info in cloud.search_servers(name_or_id=pattern):
72 73
             editor.add_server(server_info)

Loading…
Cancel
Save