summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr OspalĂ˝ <p.ospaly@partner.samsung.com>2019-06-14 09:50:29 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-14 09:50:29 +0000
commitf2f06700b7b9ad99c9c182fc01ee5cc0782ead78 (patch)
treefaca4819d8b000f18fe4d12cddd414545d5cbdc7
parent7b2dca8234db9a8b0f57ffc3e0b4f9e680370b32 (diff)
parent4a0a39a8f6302299d68104e147c6fd05a7d9b7ff (diff)
Merge "Fix missing import in helm_deployment_status.py"
-rwxr-xr-xhelm_deployment_status.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/helm_deployment_status.py b/helm_deployment_status.py
index 8f9a931d..8917e992 100755
--- a/helm_deployment_status.py
+++ b/helm_deployment_status.py
@@ -25,7 +25,7 @@ import sys
import argparse
import yaml
import requests
-from subprocess import Popen,STDOUT,PIPE
+from subprocess import Popen,STDOUT,PIPE,check_output
import datetime
from time import sleep
from os.path import expanduser
@@ -137,7 +137,7 @@ def check_in_loop(k8s, max_time, sleep_time, verbosity):
return ready
def check_helm_releases():
- helm = subprocess.check_output(['helm', 'ls'])
+ helm = check_output(['helm', 'ls'])
if helm == '':
sys.exit('No Helm releases detected.')
helm_releases = csv.DictReader(
@@ -180,9 +180,7 @@ def parse_args():
default=expanduser('~') + '/.kube/config',
help='path to .kube/config file')
parser.add_argument('--health-path', '-hp', help='path to ONAP robot ete-k8s.sh')
- parser.add_argument('--health-mode', default='health', help='healthcheck mode',
- choices=('health','healthdist','distribute','instantiate','instantiateVFWCL',
- 'instantiateDemoVFWCL','portal'))
+ parser.add_argument('--health-mode', '-hm', default='health', help='healthcheck mode')
parser.add_argument('--no-helm', action='store_true', help='Do not check Helm')
parser.add_argument('--check-frequency', '-w', default=300, type=int,
help='time between readiness checks in seconds')