From 538460fcb5e75f846d875cdf4d8a9618fb546f29 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Tue, 11 May 2021 12:22:20 +0200 Subject: [PATCH] add zone of a host object --- director-cli.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/director-cli.sh b/director-cli.sh index 584b6f3..1a30e7c 100755 --- a/director-cli.sh +++ b/director-cli.sh @@ -59,6 +59,7 @@ typeset cfg_dryrun=false if [ -z "$loadfile" ]; then MY_NAME=`hostname -f` MY_IP=`_getIpFrontend | head -1` + MY_ZONE= fi IDC_host__cachefile="${dir_data}/${MY_NAME}__host_at-director.txt" IDC_service__cachefile="${dir_data}/${MY_NAME}__all_defined_services__at-director.txt" @@ -99,6 +100,7 @@ typeset cfg_dryrun=false $ch --set object_type '"object"' $ch --set address \"$MY_IP\" $ch --set display_name \"$MY_NAME\" + $ch --set zone \"$MY_ZONE\" $ch --set icon_image \"/images/os/${MY_OSName}.png\" $ch --set icon_image_alt \"${MY_Platform}\:\ ${MY_OSName}\ ${MY_OSMajorVersion}\" -- GitLab