lib/rubber/configuration.rb in rubber-2.6.2 vs lib/rubber/configuration.rb in rubber-2.6.3

- old
+ new

@@ -19,10 +19,10 @@ def self.rubber_env raise "This convenience method needs Rubber.env to be set" unless Rubber.env cfg = Rubber::Configuration.get_configuration(Rubber.env) host = cfg.environment.current_host - roles = cfg.instance[host].role_names rescue nil + roles = cfg.instance[host] ? cfg.instance[host].role_names : nil cfg.environment.bind(roles, host) end def self.rubber_instances raise "This convenience method needs Rubber.env to be set" unless Rubber.env