This repository has been archived by the owner on Jun 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better handling of empty boolean arguments
Given this example: `razor create-policy ... --enabled --hostname 'host${id}.com' ...` Razor is thinking `--hostname` is the value for `--enabled`, and `'host${id}.com'` is then treated as a positional argument. This makes two changes which should fix this issue: - Boolean types must now be `"true"`, `"false"`, or `nil`/empty. The latter-most evaluates to `"true"`. - Any value for a boolean type starting with two dashes should be counted as the next argument. Fixes https://tickets.puppetlabs.com/browse/RAZOR-1114
- Loading branch information
1 parent
544b506
commit 81c2a69
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters