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

tkt-39967: Disallow empty cloud sync bucket #1602

Merged
merged 3 commits into from Jul 30, 2018

Conversation

themylogin
Copy link
Contributor

No description provided.

@ghost ghost assigned themylogin Jul 27, 2018
@ghost ghost added the review label Jul 27, 2018
@bugclerk bugclerk changed the title Disallow empty cloud sync bucket tkt-39967: Disallow empty cloud sync bucket Jul 27, 2018
@themylogin themylogin closed this Jul 27, 2018
@ghost ghost removed the review label Jul 27, 2018
@themylogin themylogin reopened this Jul 27, 2018
@ghost ghost added the review label Jul 27, 2018
Copy link
Member

@william-gr william-gr left a comment

Choose a reason for hiding this comment

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

@themylogin Should we add some unit test for empty?

if not isinstance(value, str):
raise Error(self.name, 'Not a string')
if not self.empty and not value:
Copy link
Member

Choose a reason for hiding this comment

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

Wont this be a problem with Int when value = 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is only for Str and List

Copy link
Member

Choose a reason for hiding this comment

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

Ah, the diff fooled me, I thought this was inside Attribute ; )

@themylogin themylogin merged commit fdd6b67 into freenas/11.3-devel Jul 30, 2018
@ghost ghost removed the review label Jul 30, 2018
@themylogin themylogin deleted the fix-empty-bucket branch July 30, 2018 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants