"openstack dataprocessing plugin configs get" misses errors
Bug #1625990 reported by
Luigi Toscano
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python client library for Sahara |
Fix Released
|
High
|
Shu Yingya |
Bug Description
The command
openstack dataprocessing plugin configs get <plugin> <version>
does not return an error if the file where the output should be written already exists.
Moreover, the output file only use the plugin name and not the version, with a higher risk of collisions.
The return code should be changes so that it is different than 0 when the file already exists. I would like to propose also, even if I'm not sure as this is a behavioral change, that the default behavior should be changed to "write to stdout" as usual for many tools, instead of a file.
Changed in python-saharaclient: | |
importance: | Undecided → High |
Changed in python-saharaclient: | |
assignee: | nobody → Shu Yingya (felixshu) |
To post a comment you must log in.
So, actually there is a option --file that allows user to override file to save plugin configs, but I think that we can improve current implementation to address this issue.
About writing to stdout, I'm not quite sure it's ok, just because size of configs is around 2MB.