Permalink
Browse files

Merge pull request #1 from j3p0uk/master

Sorting the return list makes things easier...

APPROVED: It just makes sense... :)
  • Loading branch information...
2 parents 3869d8a + 6d9d0a5 commit 2f102c2da70c173bfe3f0738c9e2622512778e31 @proffalken proffalken committed Apr 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/chef/knife/block.rb
View
@@ -23,7 +23,7 @@ class BlockList < Chef::Knife
def run
chef_path = Dir.home + "/.chef"
## get the list of available environments by searching ~/.chef for knife.rb files
- file_list = Dir.glob(chef_path+"/knife-*.rb")
+ file_list = Dir.glob(chef_path+"/knife-*.rb").sort
current_server = ""
if File.exists?(chef_path+"/knife.rb") then
if !File.symlink?(chef_path+"/knife.rb") then

0 comments on commit 2f102c2

Please sign in to comment.