Skip to content

Commit

Permalink
Error out if you try to list resources for a group that doesn't exist. (
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns authored and johanste committed Apr 7, 2017
1 parent 43bc791 commit c6eede3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ def get_deployment_operations(client, resource_group_name, deployment_name, oper
def list_resources(resource_group_name=None, resource_provider_namespace=None,
resource_type=None, name=None, tag=None, location=None):
rcf = _resource_client_factory()

if resource_group_name is not None:
rcf.resource_groups.get(resource_group_name)

odata_filter = _list_resources_odata_filter_builder(resource_group_name,
resource_provider_namespace,
resource_type, name, tag, location)
Expand Down

0 comments on commit c6eede3

Please sign in to comment.