Add files verification for 'fuel2 graph upload' command
Now Nailgun reports about successful upload of deployment graph
from directory that can even not contain any 'tasks.yaml' files.
This patch fixes:
* check if at least one 'tasks.yaml' file exists in specified
directory path
* check if at least one 'tasks.yaml' file in specified
directory path is not empty
Change-Id: I5de2474b8fbb46780450ee3873af6189a6cf17cc
Closes-Bug: 1619586
(cherry picked from commit 9dfb28e33cfc1e40c5bd00feae0e78888f2957b9)
Reviewed: https:/ /review. openstack. org/375268 /git.openstack. org/cgit/ openstack/ python- fuelclient/ commit/ ?id=5c1d3a4ba3a f3d78f2e7bfdd80 4da3dec108e755
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 5c1d3a4ba3af3d7 8f2e7bfdd804da3 dec108e755
Author: tivaliy <email address hidden>
Date: Sun Sep 4 07:30:50 2016 +0300
Add files verification for 'fuel2 graph upload' command
Now Nailgun reports about successful upload of deployment graph
from directory that can even not contain any 'tasks.yaml' files.
This patch fixes:
* check if at least one 'tasks.yaml' file exists in specified
directory path
* check if at least one 'tasks.yaml' file in specified
directory path is not empty
Change-Id: I5de2474b8fbb46 780450ee3873af6 189a6cf17cc 0c5bd00feae0e78 888f2957b9)
Closes-Bug: 1619586
(cherry picked from commit 9dfb28e33cfc1e4