Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix parent_id checking
  • Loading branch information
xyxyxyxyxyxy committed Apr 6, 2021
commit 1113e621257c9b55b748571139811ae1a253c2e8
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,12 @@ def _get_install_info(cmd,
if parent_gateway_endpoint is None or parent_gateway_endpoint == '':
parent_gateway_endpoint = "<parent gateway endpoint>"
parent_id = connected_registry.parent.id
# if parent_id is not none, parent is a connected registry
if parent_id:
parent_endpoint_protocol = "https"
else:
parent_endpoint_protocol = "<http or https>"
# if parent_id is none, parent is a cloud registry
else:
parent_endpoint_protocol = "https"
sync_token_name = connected_registry.parent.sync_properties.token_id.split('/tokens/')[1]

connected_registry_login_server = "<Optional: connected registry login server. " + \
Expand Down