Browse Source

Rename Search to List

Change-Id: I74fca76e90bca61bc41379096d0f3f0410e07ca5
changes/67/397167/1
Monty Taylor 2 years ago
parent
commit
9732db18a1
No account linked to committer's email address
2 changed files with 10 additions and 10 deletions
  1. 2
    2
      devstack/test.py
  2. 8
    8
      oaktree/server.py

+ 2
- 2
devstack/test.py View File

@@ -15,7 +15,7 @@ if len(sys.argv) > 1:
15 15
 else:
16 16
     cloud.cloud = 'devstack'
17 17
 
18
-flavors = stub.SearchFlavors(model.Filter(location=cloud))
18
+flavors = stub.ListFlavors(model.Filter(location=cloud))
19 19
 print flavors
20
-images = stub.SearchImages(model.Filter(location=cloud))
20
+images = stub.ListImages(model.Filter(location=cloud))
21 21
 print images

+ 8
- 8
oaktree/server.py View File

@@ -175,8 +175,8 @@ class OaktreeServicer(oaktree_pb2.OaktreeServicer):
175 175
                 name_or_id=request.name_or_id,
176 176
                 filters=request.jmespath))
177 177
 
178
-    def SearchFlavors(self, request, context):
179
-        logging.info('searching flavors')
178
+    def ListFlavors(self, request, context):
179
+        logging.info('listing flavors')
180 180
         cloud = _get_cloud(request)
181 181
         return convert_flavors(
182 182
             cloud.search_flavors(
@@ -191,8 +191,8 @@ class OaktreeServicer(oaktree_pb2.OaktreeServicer):
191 191
                 name_or_id=request.name_or_id,
192 192
                 filters=request.jmespath))
193 193
 
194
-    def SearchImages(self, request, context):
195
-        logging.info('searching images')
194
+    def ListImages(self, request, context):
195
+        logging.info('listing images')
196 196
         cloud = _get_cloud(request)
197 197
         return convert_images(
198 198
             cloud.search_images(
@@ -207,8 +207,8 @@ class OaktreeServicer(oaktree_pb2.OaktreeServicer):
207 207
                 name_or_id=request.name_or_id,
208 208
                 filters=request.jmespath))
209 209
 
210
-    def SearchSecurityGroups(self, request, context):
211
-        logging.info('searching security groups')
210
+    def ListSecurityGroups(self, request, context):
211
+        logging.info('listing security groups')
212 212
         cloud = _get_cloud(request)
213 213
         return convert_security_groups(
214 214
             cloud.search_security_groups(
@@ -223,8 +223,8 @@ class OaktreeServicer(oaktree_pb2.OaktreeServicer):
223 223
                 name_or_id=request.name_or_id,
224 224
                 filters=request.jmespath))
225 225
 
226
-    def SearchSecurityGroupRules(self, request, context):
227
-        logging.info('searching security group rules')
226
+    def ListSecurityGroupRules(self, request, context):
227
+        logging.info('listing security group rules')
228 228
         cloud = _get_cloud(request)
229 229
         return convert_security_group_rules(
230 230
             cloud.search_security_group_rules(

Loading…
Cancel
Save