gdeploy icon indicating copy to clipboard operation
gdeploy copied to clipboard

No error message when called with non-existent feature

Open fbalak opened this issue 8 years ago • 1 comments

gdeploy called with configuration file that contains non-existent feature (in reproducer it is aaa) returns no error message and exit code 0. There should be some error message when called invalid file and exit code should be > 0.

Reproducer:

$ echo "[hosts]
> localhost
> 
> [aaa]
> " > test.conf
$
$ gdeploy -c test.conf
$ echo $?
0

Tested with gdeploy 2.0.1 on CentOS Linux 7

fbalak avatar Aug 01 '17 16:08 fbalak

@fbalak this behavior is because we have some ad-hoc sections present from very early releases. Documented at: https://github.com/gluster/gdeploy/blob/master/gdeploylib/call_features.py#L52

This is a valid issue though. Once we rework and remove those sections, I will fix this.

sac avatar Oct 03 '17 07:10 sac