-
Notifications
You must be signed in to change notification settings - Fork 13
fixes #14615 - update api calls for hosts #26
Conversation
debug "created entity: #{entity.inspect}" | ||
entity = entity[@wrap_in[entity_type]] if @wrap_in[entity_type] | ||
# workaround for Bug | ||
entity['id'] = entity['uuid'] if entity_type == :systems |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not all that familiar with this code. Why is it ok to remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, systems used to use the candlepin uuid as the id
I get the following output:
it doesn't 500, but after running the import I don't see any hosts in my host list |
yeah, you'll need to run the 'hammer import XYZ' steps individually i think |
I ran the steps using the example export you gave me and got past the 500 error. I was not able to get all the way through since the URLs in the |
password = (HammerCLI::Settings.settings[:_params] && | ||
HammerCLI::Settings.settings[:_params][:password]) || | ||
HammerCLI::Settings.get(:foreman, :password) | ||
@api = ApipieBindings::API.new({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is problematic part. What if user is being asked for password?
No description provided.