Permalink
Browse files

Fixed relative links

  • Loading branch information...
1 parent 2985523 commit 2e229ae22d33dfc5a78201dea0c26123a8e74ff4 @arax arax committed Feb 22, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/occi/bin/helpers.rb
View
@@ -88,6 +88,8 @@ def helper_create(options, output = nil)
Occi::Log.debug "with links: #{options.links}"
options.links.each do |link|
+ link = options.endpoint.chomp('/') + link unless link.start_with? options.endpoint
+
if link.include? "/storage/"
Occi::Log.debug "Adding storagelink to #{options.resource}"
res.storagelink link

0 comments on commit 2e229ae

Please sign in to comment.