lib/sensu-plugins-aws/common.rb in sensu-plugins-aws-10.0.3 vs lib/sensu-plugins-aws/common.rb in sensu-plugins-aws-10.1.0
- old
+ new
@@ -15,11 +15,11 @@
# Released under the same terms as Sensu (the MIT license); see LICENSE
# for details.
#
module Common
- def initialize
- super()
+ def initialize(argv = ARGV)
+ super(argv)
aws_config
end
def aws_config
Aws.config[:credentials] = Aws::Credentials.new(config[:aws_access_key], config[:aws_secret_access_key]) if config[:aws_access_key] && config[:aws_secret_access_key]