diff options
author | danielsdeleo <dan@chef.io> | 2016-01-22 18:19:01 -0800 |
---|---|---|
committer | danielsdeleo <dan@chef.io> | 2016-01-26 18:12:46 -0800 |
commit | 16d041135ad382e9c7ace7081aa30dba520d8310 (patch) | |
tree | 6613ad2dd9391aa8403a60844439979ccbedcf66 /chef-config/lib/chef-config/config.rb | |
parent | f766e4a564688a75aebc9070269259b5d8adc4a2 (diff) | |
download | chef-16d041135ad382e9c7ace7081aa30dba520d8310.tar.gz |
Add test for repo_mode behavior
Diffstat (limited to 'chef-config/lib/chef-config/config.rb')
-rw-r--r-- | chef-config/lib/chef-config/config.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb index a5ccea5234..fca7429120 100644 --- a/chef-config/lib/chef-config/config.rb +++ b/chef-config/lib/chef-config/config.rb @@ -321,10 +321,8 @@ module ChefConfig # Chef 11 server. # * "hosted_everything": ChefFS manages all object types as of the Chef 12 # Server, including RBAC objects and Policyfile objects (new to Chef 12). - # - # TODO: add a test default :repo_mode do - if local_mode + if local_mode && !chef_zero.osc_compat "hosted_everything" elsif chef_server_url =~ /\/+organizations\/.+/ "hosted_everything" |