summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/policy_group_policy_endpoint.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/endpoints/policy_group_policy_endpoint.rb')
-rw-r--r--lib/chef_zero/endpoints/policy_group_policy_endpoint.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/endpoints/policy_group_policy_endpoint.rb b/lib/chef_zero/endpoints/policy_group_policy_endpoint.rb
index a34da32..b69cfe3 100644
--- a/lib/chef_zero/endpoints/policy_group_policy_endpoint.rb
+++ b/lib/chef_zero/endpoints/policy_group_policy_endpoint.rb
@@ -48,7 +48,7 @@ module ChefZero
# If the policy revision being submitted does not exist, create it.
# Storage: /organizations/ORG/policies/POLICY/revisions/REVISION
policyfile_path = request.rest_path[0..1] + ["policies", policy_name, "revisions", revision_id]
- if !exists_data?(request, policyfile_path)
+ unless exists_data?(request, policyfile_path)
create_data(request, policyfile_path[0..-2], revision_id, request.body, :create_dir)
end