Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
RMR update and release step 1/2
[ric-plt/e2mgr.git]
/
Automation
/
Tests
/
Scripts
/
k8s_helper.py
diff --git
a/Automation/Tests/Scripts/k8s_helper.py
b/Automation/Tests/Scripts/k8s_helper.py
index
4fe6dd8
..
a1cce5f
100644
(file)
--- a/
Automation/Tests/Scripts/k8s_helper.py
+++ b/
Automation/Tests/Scripts/k8s_helper.py
@@
-32,7
+32,7
@@
def extract_service_ip(service_name):
return service_ip.strip()
def extract_pod_name(pod_base_name):
return service_ip.strip()
def extract_pod_name(pod_base_name):
- k8s_command = "kubectl get pods -n ricplt | /bin/grep {} | awk \'{{print $1}}\'" \
+ k8s_command = "kubectl get pods -n ricplt | /bin/grep {} |
/bin/grep Running |
awk \'{{print $1}}\'" \
.format(pod_base_name)
pod_name = subprocess.check_output(["/bin/bash", "-c", k8s_command], universal_newlines=True)
.format(pod_base_name)
pod_name = subprocess.check_output(["/bin/bash", "-c", k8s_command], universal_newlines=True)