Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
damoore044 committed May 30, 2024
1 parent 6d1930c commit 5b7f6ef
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions robottelo/host_helpers/api_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,11 +745,10 @@ def register_host_and_needed_setup(
param loc: pass a location object to limit host visibility.
default None, client is available to all locations.
type: Below arguments can be any of the following
int - pass id of entity to be read
str - pass name of entity to be searched
entity - pass an entity instance
(type): Below arguments can be any of the following
int - pass id of entity to be read
str - pass name of entity to be searched
entity - pass an entity instance
param organization: pass an Organization instance, name, or id to use.
param activation_key: pass an Activation-Key instance, name, or id.
Expand All @@ -760,12 +759,12 @@ def register_host_and_needed_setup(
Notes:
1. Will fail if passed entities do not exist in the same organization and satellite.
2. Use param `enable_repos`, to try enabling any repositories on client,
that were added to content-view prior. But if there are no
repositories added/made available, this will fail.
3. The 'Default Organization View' cannot be published, promoted, edited, or deleted.
but you can register the client to it.
1. Will fail if passed entities do not exist in the same organization and satellite.
2. Use param `enable_repos`, to try enabling any repositories on client,
that were added to content-view prior. But if there are no
repositories added/made available, this will fail.
3. The 'Default Organization View' cannot be published, promoted, edited, or deleted.
but you can register the client to it.
Steps:
Expand All @@ -778,12 +777,14 @@ def register_host_and_needed_setup(
7. Add a rex_key to the client if desired
return: if Succeeded: dict containing the updated entities:
{
'result', 'client', 'organization', 'activation_key',
'environment', 'content_view',
}
return: if Failed: dict containing the result and reason
{
'result': 'error'
'client': None, unless registration was successful
Expand Down

0 comments on commit 5b7f6ef

Please sign in to comment.