Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #175 from naeem98/fix_nil_return
Browse files Browse the repository at this point in the history
Fix params when return value is nil
  • Loading branch information
eputnam authored Nov 28, 2017
2 parents 8f01c78 + ae5d6cf commit 7ca9af1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/puppet/provider/azure_resource_template/arm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
def self.instances # rubocop:disable Metrics/AbcSize
begin
PuppetX::Puppetlabs::Azure::ProviderArm.new.get_all_deployments.collect do |dep|
params = dep.properties.parameters.each_with_object({}) do |(k,v),memo|
iterator = dep.properties.parameters || {}
params = iterator.each_with_object({}) do |(k,v),memo|
memo[k] = v['value']
end

Expand Down

0 comments on commit 7ca9af1

Please sign in to comment.