Skip to content

Commit

Permalink
Use the correct get_location_completion_list function
Browse files Browse the repository at this point in the history
  • Loading branch information
derekbekoe committed Jun 10, 2016
1 parent 5e6857c commit 4b7fead
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
load_images_from_aliases_doc,
get_vm_sizes)
from azure.cli.commands.parameters import (location_type,
get_location_completion_list,
get_one_of_subscription_locations,
get_resource_name_completion_list)
from azure.cli.commands import register_cli_argument, CliArgumentType, register_extra_cli_argument

def get_location_completion_list(prefix, **kwargs):#pylint: disable=unused-argument
result = get_subscription_locations()
return [l.name for l in result]

def get_urn_aliases_completion_list(prefix, **kwargs):#pylint: disable=unused-argument
images = load_images_from_aliases_doc()
return [i['urn alias'] for i in images]
Expand Down

0 comments on commit 4b7fead

Please sign in to comment.