From 2975806fb50bd6df5e6a92c4eb19f7309e11d349 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Thu, 29 Aug 2019 18:10:38 -0400 Subject: [PATCH] overcloud status: return a message if no deployment is found If "openstack overcloud status" has no deployment, returns a proper message instead of just None. Change-Id: Ia884a052223be31e8df9de8ae39dacd1fc3159cd (cherry picked from commit 71135833d969f4b94c12ce5db8d57ccf7f0c34f1) --- tripleoclient/v1/overcloud_deploy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tripleoclient/v1/overcloud_deploy.py b/tripleoclient/v1/overcloud_deploy.py index 89b0c0ea8..9eeb93261 100644 --- a/tripleoclient/v1/overcloud_deploy.py +++ b/tripleoclient/v1/overcloud_deploy.py @@ -1011,6 +1011,7 @@ class GetDeploymentStatus(command.Command): ) if not status: + print('No deployment was found for %s' % plan) return payload = status['workflow_status']['payload']