Project

General

Profile

Actions

Bug #36588

closed

hammer settings set returns incomplete message for False values

Added by Oleh Fedorenko over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Other commands
Target version:
-
Difficulty:
Triaged:
Yes
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2221673

Description of problem:
hammer settings set returns incomplete message when setting some boolean with False value.

Version-Release number of selected component (if applicable):
6.14.0 snap 6

How reproducible:
always

Steps to Reproduce:
1. Try to set some (no matter which) boolean setting to False:
  1. hammer settings set --name db_pending_seed --value 0

Actual results:
Setting [db_pending_seed] updated to [].

Expected results:
Setting [db_pending_seed] updated to [false].

Additional info:
Works fine for True values
  1. hammer settings set --name db_pending_seed --value False
    Setting [db_pending_seed] updated to [].
  2. hammer settings set --name db_pending_seed --value false
    Setting [db_pending_seed] updated to [].
  3. hammer settings set --name db_pending_seed --value 0
    Setting [db_pending_seed] updated to [].
  1. hammer settings set --name db_pending_seed --value True
    Setting [db_pending_seed] updated to [true].
  2. hammer settings set --name db_pending_seed --value true
    Setting [db_pending_seed] updated to [true].
  3. hammer settings set --name db_pending_seed --value 1
    Setting [db_pending_seed] updated to [true].
Actions

Also available in: Atom PDF