Actions
Bug #17252
closedUnable to set empty parameter via hammer
Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Pull request:
Team Backlog:
Description
Hammer doesn't allow to to send nil values, which prevents users from re-setting attributes to their default values in some cases. The only thing a user can do is to send empty string --param=""
but it's not the same as nil.
From the discussions about this topic it seems that one of the solutions could be to use a reserved value, that would be translated to nil internally. Users could override the value using some env variable.
For example:
hammer domain update --name test --dns nil HAMMER_NIL=None hammer domain update --name test --dns None
Updated by Tomáš Strachota about 8 years ago
- Related to Bug #13994: Cannot dis-associate a Subnet from a Domain using Hammer added
Updated by Tomáš Strachota about 8 years ago
- Related to Bug #17250: Unable to remove all locations or organizations from a domain added
Updated by Tomáš Strachota about 8 years ago
- Related to Tracker #2823: Tracker for usability issues added
Updated by Martin Bacovsky about 7 years ago
- Status changed from New to Assigned
- Assignee set to Martin Bacovsky
- Target version changed from 115 to 233
Updated by The Foreman Bot about 7 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli/pull/260 added
Updated by Martin Bacovsky about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset cd5cc9d605f5a955ee249cf6630c1465c3a30451.
Updated by Martin Bacovsky about 7 years ago
- Translation missing: en.field_release set to 289
Updated by Martin Bacovsky about 7 years ago
- Related to Bug #21768: Support NIL values in searchable options added
Updated by Martin Bacovsky about 7 years ago
- Related to Bug #22009: Invalid routes with NIL as a route param are selected added
Actions