Rename Search to List

Change-Id: I74fca76e90bca61bc41379096d0f3f0410e07ca5
This commit is contained in:
Monty Taylor 2016-11-14 06:31:21 -06:00
parent 15b519cc41
commit 9732db18a1
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 10 additions and 10 deletions

View File

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

View File

@ -175,8 +175,8 @@ class OaktreeServicer(oaktree_pb2.OaktreeServicer):
name_or_id=request.name_or_id, name_or_id=request.name_or_id,
filters=request.jmespath)) filters=request.jmespath))
def SearchFlavors(self, request, context): def ListFlavors(self, request, context):
logging.info('searching flavors') logging.info('listing flavors')
cloud = _get_cloud(request) cloud = _get_cloud(request)
return convert_flavors( return convert_flavors(
cloud.search_flavors( cloud.search_flavors(
@ -191,8 +191,8 @@ class OaktreeServicer(oaktree_pb2.OaktreeServicer):
name_or_id=request.name_or_id, name_or_id=request.name_or_id,
filters=request.jmespath)) filters=request.jmespath))
def SearchImages(self, request, context): def ListImages(self, request, context):
logging.info('searching images') logging.info('listing images')
cloud = _get_cloud(request) cloud = _get_cloud(request)
return convert_images( return convert_images(
cloud.search_images( cloud.search_images(
@ -207,8 +207,8 @@ class OaktreeServicer(oaktree_pb2.OaktreeServicer):
name_or_id=request.name_or_id, name_or_id=request.name_or_id,
filters=request.jmespath)) filters=request.jmespath))
def SearchSecurityGroups(self, request, context): def ListSecurityGroups(self, request, context):
logging.info('searching security groups') logging.info('listing security groups')
cloud = _get_cloud(request) cloud = _get_cloud(request)
return convert_security_groups( return convert_security_groups(
cloud.search_security_groups( cloud.search_security_groups(
@ -223,8 +223,8 @@ class OaktreeServicer(oaktree_pb2.OaktreeServicer):
name_or_id=request.name_or_id, name_or_id=request.name_or_id,
filters=request.jmespath)) filters=request.jmespath))
def SearchSecurityGroupRules(self, request, context): def ListSecurityGroupRules(self, request, context):
logging.info('searching security group rules') logging.info('listing security group rules')
cloud = _get_cloud(request) cloud = _get_cloud(request)
return convert_security_group_rules( return convert_security_group_rules(
cloud.search_security_group_rules( cloud.search_security_group_rules(