X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Automation%2FTests%2FScripts%2Fk8s_helper.py;h=2a849435ee47516892e43825cf434be1fe2c3804;hb=35766cc8a70ee08c8cded89dee889d9e11036da5;hp=80b182921178987acc5542b7fb3926e95a6020d3;hpb=fafc90d9bf1c8edc7b8815280f2fd0a11677e00b;p=ric-plt%2Fe2mgr.git diff --git a/Automation/Tests/Scripts/k8s_helper.py b/Automation/Tests/Scripts/k8s_helper.py index 80b1829..2a84943 100644 --- a/Automation/Tests/Scripts/k8s_helper.py +++ b/Automation/Tests/Scripts/k8s_helper.py @@ -24,9 +24,9 @@ import subprocess def extract_service_ip(service_name): - k8s_command = "kubectl -n ricplt get services | /bin/grep {} | /bin/grep ClusterIP | awk \'{{print $3}}\'"\ + k8s_command = "kubectl -n ricplt get services | /bin/grep {} | /bin/grep ClusterIP | awk \'{{print $3}}\'" \ .format(service_name) service_ip = subprocess.check_output(["/bin/bash", "-c", k8s_command], universal_newlines=True) - return service_ip.strip() + return service_ip.strip() \ No newline at end of file