Browse Source

clean up query blocks to make them consistent

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

+ 4
- 4
downpour/query.py View File

@@ -91,14 +91,14 @@ def query_data(cloud, config, args):
91 91
 
92 92
     for pattern in args.server_name:
93 93
         LOG.info('searching for servers matching pattern %r', pattern)
94
-        for server_info in cloud.search_servers(name_or_id=pattern):
95
-            editor.add_server(server_info)
94
+        for info in cloud.search_servers(name_or_id=pattern):
95
+            editor.add_server(info)
96 96
 
97 97
     for flavor in args.server_flavor:
98 98
         LOG.info('searching for servers using flavor %r', flavor)
99
-        for server_info in cloud.search_servers(
99
+        for info in cloud.search_servers(
100 100
                 filters={'flavor': {'id': flavor}}):
101
-            editor.add_server(server_info)
101
+            editor.add_server(info)
102 102
 
103 103
     for pattern in args.image_name:
104 104
         LOG.info('searching for images matching pattern %r', pattern)

Loading…
Cancel
Save