Skip to content

Commit

Permalink
Using newer arm sdk version (#44)
Browse files Browse the repository at this point in the history
Some object methods have been deprecated in v0.11.0 of the arm sdks.
This commit fixes the get_resources method by using the new resources
object instance method. We are also updating the Gemfile accordingly.

Signed-off-by: sanabriad <[email protected]>
  • Loading branch information
dansanabria authored and chris-rock committed Oct 8, 2017
1 parent 65734a1 commit 7f5463e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
source 'https://rubygems.org'

gem 'inifile'
gem 'azure_mgmt_compute'
gem 'azure_mgmt_resources'
gem 'azure_mgmt_network'
gem 'azure_mgmt_compute', '~> 0.11.0'
gem 'azure_mgmt_resources', '~> 0.11.0'
gem 'azure_mgmt_network', '~> 0.11.0'
gem 'bundle'

group :development do
Expand Down
2 changes: 1 addition & 1 deletion libraries/azure_backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def get_resource_group(name)
#
# @return [Azure::ARM::Resources::Models::ResourceListResult] Object containing array of all the resources
def get_resources(name)
client.resource_groups.list_resources_as_lazy(name) if exists(name)
client.resources.list_by_resource_group_as_lazy(name) if exists(name)
end
end

Expand Down

0 comments on commit 7f5463e

Please sign in to comment.