← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1394236] Re: glance client should fail if using a non-boolean string when a boolean is required

 

Moved to python-glanceclient as this seems to be client issue.

** Project changed: glance => python-glanceclient

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1394236

Title:
  glance client should fail if using a non-boolean string when a boolean
  is required

Status in Python client library for Glance:
  New

Bug description:
  Description of problem:
  When the following command is executed, the command succeded but revirests the --is-public IS_PUBLIC to false. This should come out with wrong input error

  glance --debug image-create --name  CentOS-7-x86_64-GenericCloud --is-
  public IS_PUBLIC --disk-format raw --container-format bare --file
  CentOS-7-x86_64-GenericCloud-20140707_01.qcow2.1 --progress

  
  Version-Release number of selected component (if applicable):
  all

  How reproducible:
  Always

  Steps to Reproduce:
  1.glance --debug image-create --name  CentOS-7-x86_64-GenericCloud --is-public IS_PUBLIC --disk-format raw --container-format bare --file CentOS-7-x86_64-GenericCloud-20140707_01.qcow2.1 --progress 
  2.
  3.

  Actual results:
  sets is-public to false

  Expected results:
  an error

  Additional info:
  This looks to be becuase of the strutils.bool_from_string which looks to follow the rule of if its not true then its false.

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-glanceclient/+bug/1394236/+subscriptions


References