Description
Specifying the --with_endpoints option when publishing a runbook does not retain the endpoints as expected
Branch/Container
release/3.5.2, master
To Reproducecalm publish runbook --name "My Runbook" --version 1.2.3 --project myproj --with_secrets --with_endpoints --publish_to_marketplace "my-runbook"
Expected behavior
Marketplace manager will show the runbook 'Published with endpoints' checkbox checked.
Findings/Troubleshooting Donepublish_runbook in marketplace_runbook_commands.py accepts the with_endpoints parameter but doesn't pass it on to publish_runbook_as_new_marketplace_item or publish_runbook_as_new_marketplace_item, so its value defaults to False. A similar omission exists in marketplace.py, when publish_runbook_to_marketplace_manager() is called.
Description Specifying the --with_endpoints option when publishing a runbook does not retain the endpoints as expected
Branch/Container release/3.5.2, master
To Reproduce
calm publish runbook --name "My Runbook" --version 1.2.3 --project myproj --with_secrets --with_endpoints --publish_to_marketplace "my-runbook"
Expected behavior Marketplace manager will show the runbook 'Published with endpoints' checkbox checked.
Findings/Troubleshooting Done
publish_runbook
in marketplace_runbook_commands.py accepts the with_endpoints parameter but doesn't pass it on topublish_runbook_as_new_marketplace_item
orpublish_runbook_as_new_marketplace_item
, so its value defaults to False. A similar omission exists in marketplace.py, whenpublish_runbook_to_marketplace_manager()
is called.