Skip to content

Commit

Permalink
Merge pull request #110 from peterneubauer/master
Browse files Browse the repository at this point in the history
abort if no DB specified
  • Loading branch information
aphyr committed Feb 23, 2015
2 parents badd3cc + 06adf45 commit f72042f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/riemann-aws-rds-status
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Riemann::Tools::AWS
opt :secret_key, "Secret access key", :type => String
opt :region, "AWS region", :type => String, :default => 'eu-west-1'
opt :dbinstance_identifier, "DBInstanceIdentifier", :type => String

def initialize
abort "FATAL: specify a DB instance name, see --help for usage" unless opts[:dbinstance_identifier]
@cloudwatch = Fog::AWS::CloudWatch.new(:aws_access_key_id => opts[:access_key],
:aws_secret_access_key => opts[:secret_key],
:region => opts[:region])
Expand Down

0 comments on commit f72042f

Please sign in to comment.