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.
This commit is contained in:
Joshua Boniface 2019-05-23 22:27:34 -04:00
parent 8ef21cf9f2
commit 69462d2c7b
1 changed files with 1 additions and 1 deletions

View File

@ -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)