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

Adding log_delivery parameter to CDN create_service #577

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vikomall
Copy link

Adding log_delivery parameter to CDN create_service.
Issue #576

@@ -57,14 +57,15 @@ def delete_assets(self, url=None, all=False):
class CloudCDNServiceManager(BaseManager):

def create(self, name, flavor_id, domains, origins,
restrictions=None, caching=None):
restrictions=None, caching=None, log_delivery=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this has to be True/False, this should be log_delivery=False

Copy link
Author

Choose a reason for hiding this comment

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

Thanks @briancurtin for reviewing. Currently allowed value is {"enabled": "true/false"}, but in future if it supports some other key/values in this dictionary, for example {"enabled": "true", "log_path": "cloud-files-container-path"}, then we have to revisit this change.
So I am thinking current change is OK. Let me know what you think!

Copy link
Contributor

Choose a reason for hiding this comment

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

If that happened, we'd just add a log_path=None argument and construct the appropriate body to go along with it.

Copy link
Author

Choose a reason for hiding this comment

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

If we keep the current implementation, we need not touch it again.

Copy link
Contributor

Choose a reason for hiding this comment

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

If we keep the current implementation, we will forever offer a sub-par experience.

@vikomall
Copy link
Author

vikomall commented Oct 7, 2015

@briancurtin updated patch as suggested.

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