Skip to content

Handle empty facts#103

Merged
srueg merged 1 commit intomasterfrom
fix/empty-fact
May 27, 2020
Merged

Handle empty facts#103
srueg merged 1 commit intomasterfrom
fix/empty-fact

Conversation

@srueg
Copy link
Copy Markdown
Contributor

@srueg srueg commented May 26, 2020

If a fact is set to an empty string, handle it accordingly. Depending if
the fact is required or not, fail or ignore it respectively.

If a fact is set to an empty string, handle it accordingly. Depending if
the fact is required or not, fail or ignore it respectively.

Signed-off-by: Simon Rüegg <simon@rueggs.ch>
@srueg srueg requested a review from simu May 26, 2020 13:29
@srueg srueg force-pushed the fix/empty-fact branch from bed9509 to e24610f Compare May 26, 2020 13:29
@srueg srueg requested a review from corvus-ch May 26, 2020 13:30
Copy link
Copy Markdown
Member

@simu simu left a comment

Choose a reason for hiding this comment

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

We should ensure that the optional facts are strings and not lists or dicts.

edit: that should actually be checked for all facts, not just optional ones.

Comment thread commodore/cluster.py
Comment thread commodore/cluster.py
@srueg srueg merged commit c0e5be0 into master May 27, 2020
@srueg srueg deleted the fix/empty-fact branch May 27, 2020 06:35
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.

3 participants