tools/riemann-aws/lib/riemann/tools/aws/billing.rb in riemann-tools-1.10.0 vs tools/riemann-aws/lib/riemann/tools/aws/billing.rb in riemann-tools-1.11.0
- old
+ new
@@ -19,10 +19,12 @@
opt :time_start, 'Start time in seconds of the metrics period (2hrs ago default)', type: Integer, default: 7200
opt :time_end, 'End time in seconds of the metrics period ', type: Integer, default: 60
def initialize
- if options[:fog_credentials_file]
+ super
+
+ if opts[:fog_credentials_file]
Fog.credentials_path = opts[:fog_credentials_file]
Fog.credential = opts[:fog_credential].to_sym
@cloudwatch = Fog::AWS::CloudWatch.new
else
creds = if opts.key?('secret_key') && opts.key?('access_key')