lib/sfn/provider.rb in sfn-0.3.0 vs lib/sfn/provider.rb in sfn-0.3.2

- old
+ new

@@ -38,11 +38,11 @@ # @option args [Logger] :logger use custom logger # @option args [Numeric] :stack_expansion_interval interval to wait between stack data expands # @option args [Numeric] :stack_list_interval interval to wait between stack list refresh def initialize(args={}) args = args.to_smash - unless(args[:miasma][:provider]) - best_guess = args[:miasma].keys.group_by do |key| + unless(args.get(:miasma, :provider)) + best_guess = args.fetch(:miasma, {}).keys.group_by do |key| key.to_s.split('_').first end.sort do |x, y| y.size <=> x.size end.first if(best_guess)