Revert "Fail if the Overcloud inventory is empty"

This reverts commit 773bef1c7a.

The reverted commit made the inventory fail if there was no overcloud
deployed. However, the inventory is also used a lot in cases with no
overcloud (many validations for instance).

Change-Id: I19a4e02d25037f54c2449396ea84492b49555fd6
This commit is contained in:
Florian Fuchs 2018-08-02 18:31:14 +02:00
parent 7627d15bb6
commit d96473bb3b
1 changed files with 0 additions and 8 deletions

View File

@ -138,14 +138,6 @@ def main():
ansible_ssh_user=configs.ansible_ssh_user,
plan_name=configs.stack or configs.plan)
if inventory.get_overcloud_environment() == {}:
print("ERROR: The environment data can not "
"be empty '{{}}', please check that the --stack "
"or --plan options are configured correctly "
"and the stack {} exists".format(configs.stack or configs.plan)
,file=sys.stderr)
sys.exit(1)
if configs.list:
try:
inventory_list = inventory.list()