Skip to content

Commit

Permalink
Respect build_dir from resource
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Sep 22, 2023
1 parent 5d7679a commit 4150cab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/puppet/provider/cert/katello_ssl_tool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ def req_file
end

def build_path(file_name = '')
self.class.build_path(File.join(resource[:hostname], file_name))
self.class.build_path(File.join(resource[:hostname], file_name), resource[:build_dir])
end
end
6 changes: 3 additions & 3 deletions lib/puppet/provider/katello_ssl_tool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ def self.target_path(file_name = '')
end

def build_path(file_name = '')
self.class.build_path(file_name)
self.class.build_path(file_name, resource[:build_dir])
end

def self.build_path(file_name = '')
File.join("/root/ssl-build", file_name)
def self.build_path(file_name = '', build_dir)
File.join(build_dir, file_name)
end

def ca_details
Expand Down

0 comments on commit 4150cab

Please sign in to comment.