[cli] 'murano package-create' optional paramter is required

Bug #1343165 reported by Sergey Murashov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-muranoclient
Won't Fix
Undecided
Unassigned

Bug Description

Steps to reproduce:
1. Install murano pythonclient
2. Execute 'murano package-create --classes-dir Classes --resources-dir Resources -f somefqn --name nameofpackage

Actual result:
We get "'--ui' is required parameter", but if we execute 'murano help package-create', we get the following message:

user@ubuntu:~/tempest/tempest/cli/simple_read_only$ murano help package-create
usage: murano package-create [-t <HEAT_TEMPLATE>] [-c <CLASSES_DIRECTORY>]
                             [-r <RESOURCES_DIRECTORY>] [-n <DISPLAY_NAME>]
                             [-f <full-name>] [-a <AUTHOR>]
                             [--tags [<TAG1 TAG2> [<TAG1 TAG2> ...]]]
                             [-d <DESCRIPTION>] [-o <PACKAGE_NAME>]
                             [-u <UI_DEFINITION>] [--type TYPE] [-l <LOGO>]

Create an application package.

Optional arguments:
  -t <HEAT_TEMPLATE>, --template <HEAT_TEMPLATE>
                        Path to the Heat template to import as an Application
                        Definition
  -c <CLASSES_DIRECTORY>, --classes-dir <CLASSES_DIRECTORY>
                        Path to the directory containing application classes
  -r <RESOURCES_DIRECTORY>, --resources-dir <RESOURCES_DIRECTORY>
                        Path to the directory containing application resources
  -n <DISPLAY_NAME>, --name <DISPLAY_NAME>
                        Display name of the Application in Catalog
  -f <full-name>, --full-name <full-name>
                        Fully-qualified name of the Application in Catalog
  -a <AUTHOR>, --author <AUTHOR>
                        Name of the publisher
  --tags [<TAG1 TAG2> [<TAG1 TAG2> ...]]
                        List of keywords connected to the application
  -d <DESCRIPTION>, --description <DESCRIPTION>
                        Detailed description for the Application in Catalog
  -o <PACKAGE_NAME>, --output <PACKAGE_NAME>
                        The name of the output file archive to save locally
  -u <UI_DEFINITION>, --ui <UI_DEFINITION>
                        Dynamic UI form definition
  --type TYPE Package type. Possible values: Application or Library
  -l <LOGO>, --logo <LOGO>
                        Path to the package logo

Where '--ui' is a optional parameter

Changed in murano:
importance: Undecided → Low
ruhe (ruhe)
no longer affects: murano
Revision history for this message
Ekaterina Chernova (efedorova) wrote :

This is an expected behavior. This parameter became required only with regular type of package. Since we don't know in advance, what package type will be created - this parameter is displayed as optional

Changed in python-muranoclient:
status: New → Won't Fix
Changed in python-muranoclient:
milestone: none → 0.5.6
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.