Skip to content

Commit

Permalink
abort if no DB specified
Browse files Browse the repository at this point in the history
  • Loading branch information
peterneubauer committed Feb 23, 2015
1 parent badd3cc commit 06adf45
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 06adf45

Please sign in to comment.