Skip to content

Commit

Permalink
Add ENV to set up test upload URL and set the default to prod (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimShtein authored Oct 10, 2019
1 parent 3264a50 commit d87179a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/foreman_inventory_upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def self.facts_archive_name
end

def self.upload_url
'https://ci.cloud.paas.psi.redhat.com/api/ingress/v1/upload'
# for testing set ENV to 'https://ci.cloud.paas.psi.redhat.com/api/ingress/v1/upload'
@upload_url ||= ENV['SATELLITE_INVENTORY_UPLOAD_URL'] || 'https://cloud.redhat.com/api/ingress/v1/upload'
end

def self.ensure_folder(folder)
Expand Down

0 comments on commit d87179a

Please sign in to comment.