lib/cloudstack-cli/base.rb in cloudstack-cli-0.1.5 vs lib/cloudstack-cli/base.rb in cloudstack-cli-0.1.6

- old
+ new

@@ -7,10 +7,15 @@ trap("SIGINT") { puts " bye" exit! } + # exit with return code 1 in case of a error + def self.exit_on_failure? + true + end + no_commands do def client @config ||= CloudstackClient::ConnectionHelper.load_configuration(options[:config]) @client ||= CloudstackClient::Connection.new( @config[:url], @@ -27,10 +32,10 @@ end project end def filter_by(objects, tag_name, tag) - objects.select {|r| r[tag_name].downcase == tag } + objects.select {|r| r[tag_name].downcase == tag.downcase } end end end end \ No newline at end of file