Skip to content

Commit

Permalink
Merge pull request #87 from CaseCommonsDevOps/environment_group_fix
Browse files Browse the repository at this point in the history
Fix the bug that user can't use environment when there is environment group
  • Loading branch information
jonlives committed Sep 10, 2013
2 parents 4c78108 + 1faa4c8 commit d5c20fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/knife-spork/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def load_environments_and_cookbook
end

def load_specified_environment_group(name)
if spork_config.environment_groups.nil?
[name]
else
if !spork_config.environment_groups.nil? && spork_config.environment_groups.keys.include?(name)
spork_config.environment_groups[name]
else
[name]
end
end

Expand Down

0 comments on commit d5c20fe

Please sign in to comment.