xcat2 / xcat-inventory

An inventory tool for xcat cluster
8 stars 16 forks source link

fix issue `import -d <dir> -c` will panic if <dir> is blank #181 #182

Closed immarvin closed 5 years ago

immarvin commented 5 years ago

this PR is to fix issue #181

UT:

[root@c910f03c05k21 inventory]# xcat-inventory import -d /tmp/backend_test/git/repo/ -c
Error: cannot find any xCAT inventory object in directory "/tmp/backend_test/git/repo/"
Error: cannot find any xCAT inventory object in directory "/tmp/backend_test/git/repo/"
You have new mail in /var/spool/mail/root
[root@c910f03c05k21 inventory]#