Skip to content

Commit

Permalink
docstrings present
Browse files Browse the repository at this point in the history
  • Loading branch information
damoore044 committed May 30, 2024
1 parent b80d207 commit 22a1651
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions robottelo/host_helpers/api_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,14 +765,13 @@ def register_host_and_needed_setup(
Pass a Content-View instance, name, or id.
Example: can pass string name 'Default Organization View'.
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 the client
that were added to the 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.
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 the client
that were added to the 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:
1. Get needed entities from arguments (id, name, or instance). Read all as instance.
Expand All @@ -793,6 +792,7 @@ def register_host_and_needed_setup(
'environment': entities['LifecycleEnvironment'],
'content_view': entities['ContentView'],
}
If failed:
{
'result': 'error',
Expand Down

0 comments on commit 22a1651

Please sign in to comment.