Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 octavia-cli: make schedule field optional #13028

Merged
merged 1 commit into from
May 19, 2022

Conversation

alafanechere
Copy link
Contributor

What

The schedule field in connection configuration can be optional to make the connection manually triggered.

How

Handle non-existence of a schedule key in the connection configuration.

@alafanechere alafanechere marked this pull request as ready for review May 19, 2022 15:29
@@ -587,7 +588,7 @@ def _check_for_legacy_connection_configuration_keys(self, configuration_to_check
self._check_for_invalid_configuration_keys(
configuration_to_check, {"syncCatalog", "namespaceDefinition", "namespaceFormat", "resourceRequirements"}, error_message
)
self._check_for_invalid_configuration_keys(configuration_to_check["schedule"], {"timeUnit"}, error_message)
self._check_for_invalid_configuration_keys(configuration_to_check.get("schedule", {}), {"timeUnit"}, error_message)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't move this function to the if block?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no if block in this function 😄

@alafanechere alafanechere merged commit bd07fce into master May 19, 2022
@alafanechere alafanechere deleted the augustin/octavia-cli/make-schedule-optional branch May 19, 2022 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants