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
(cherry picked from commit d96473bb3b)
This commit is contained in:
Florian Fuchs 2018-08-02 18:31:14 +02:00
parent c6f61b2a44
commit 4f1fabaea8
1 changed files with 0 additions and 7 deletions

View File

@ -135,13 +135,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 the --plan options are configured correctly "
"and if they correspond to the stack name.")
sys.exit(1)
if configs.list or configs.static_inventory:
try:
inventory_list = inventory.list()