From 69462d2c7bde6a752fe783bc78bf842cfa364378 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 23 May 2019 22:27:34 -0400 Subject: [PATCH] Ensure myhostname is short PVC now uses shortnames for node names, so ensure this is reflected in the default choices for some node-level commands. --- client-cli/pvc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-cli/pvc.py b/client-cli/pvc.py index 4ddb01b3..362b2337 100755 --- a/client-cli/pvc.py +++ b/client-cli/pvc.py @@ -38,7 +38,7 @@ import client_lib.network as pvc_network import client_lib.ceph as pvc_ceph #import client_lib.provisioner as pvc_provisioner -myhostname = socket.gethostname() +myhostname = socket.gethostname().split('.')[0] zk_host = '' CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'], max_content_width=120)