generate_config: Check yaml arg is really a file 21/51221/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 26 Jan 2018 20:32:07 +0000 (21:32 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 26 Jan 2018 20:45:10 +0000 (21:45 +0100)
commitafed939379a5870cbbdf3bcb4d0ce8a4ebd789a5
treeac76187702654ba3215e8c34b33c69427b63d704
parentc80d5dc39aba382011ddc861bdf6d88b92678688
generate_config: Check yaml arg is really a file

In order to support bash process substition, e.g.
$ ./generate_config.py -j /path/to/template.j2 -y <(echo stuff);
do not consume the contents of ARGS.yaml unless it is a file.

Change-Id: I89053cfaadc158f6a15f85836892b21980081772
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
config/utils/generate_config.py