[READINESS] Small correction in parameter handling 75/135875/1 5.0.1
authorAndreas Geissler <andreas-geissler@telekom.de>
Wed, 30 Aug 2023 06:41:53 +0000 (08:41 +0200)
committerAndreas Geissler <andreas-geissler@telekom.de>
Wed, 30 Aug 2023 06:48:50 +0000 (08:48 +0200)
Parameters --pod-name and --app-name were failing

Issue-ID: OOM-3171
Issue-ID: OOM-3236

Change-Id: I00c80a4fac0c8afafeb62d8890f9516a8c1df7ee
Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
ready.py

index d9fcfbe..e80e6f0 100755 (executable)
--- a/ready.py
+++ b/ready.py
@@ -343,7 +343,7 @@ def get_deployment_name(replicaset):
                                                           namespace)
     deployment_name = read_name(api_response)
     return deployment_name
-   
+
 def check_socket(host, port):
     with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as sock:
         if sock.connect_ex((host, port)) == 0:
@@ -404,8 +404,8 @@ def main(argv):
     url = DEF_URL
     try:
         opts, _args = getopt.getopt(argv, "hj:c:p:a:t:s:u:", ["container-name=",
-                                                    "pod-name",
-                                                    "app-name",
+                                                    "pod-name=",
+                                                    "app-name=",
                                                     "timeout=",
                                                     "service-mesh-check=",
                                                     "url=",