summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2015-02-11 13:35:48 -0800
committerdanielsdeleo <dan@getchef.com>2015-02-11 13:35:48 -0800
commit9c6488d6939d57d35301edbf51f42d760b2add2c (patch)
tree4b481ec66d24e1b919f148df9dea9c8921db4006
parentd19fa385eed8f96b5e851d0ffee71c141c5cbe8e (diff)
downloadchef-9c6488d6939d57d35301edbf51f42d760b2add2c.tar.gz
DRY force_save_url in CookbookManifest
-rw-r--r--lib/chef/cookbook_manifest.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook_manifest.rb b/lib/chef/cookbook_manifest.rb
index 4f80203ccf..0d21e9725c 100644
--- a/lib/chef/cookbook_manifest.rb
+++ b/lib/chef/cookbook_manifest.rb
@@ -148,7 +148,7 @@ class Chef
# the user to overwrite a frozen cookbook (a PUT against the
# normal #save_url raises a 409 Conflict in this case).
def force_save_url
- "#{cookbook_url_path}/#{name}/#{version}?force=true"
+ "#{save_url}?force=true"
end
# Update this CookbookManifest from the contents of another manifest, and