We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 383fc0f commit 8f6ae90Copy full SHA for 8f6ae90
files/build_templates/docker_image_ctl.j2
@@ -130,8 +130,8 @@ start() {
130
{%- else %}
131
# Obtain our HWSKU as we will mount directories with these names in each docker
132
HWSKU=`sonic-cfggen -d -v 'DEVICE_METADATA["localhost"]["hwsku"]'`
133
+ HOSTNAME=`sonic-cfggen -d -v 'DEVICE_METADATA["localhost"]["hostname"]'`
134
{%- endif %}
- HOSTNAME=`sonic-cfggen -m -v 'DEVICE_METADATA["localhost"]["hostname"]'`
135
if [ -z "$HOSTNAME" ] || ! [[ $HOSTNAME =~ ^[a-zA-Z0-9.\-]*$ ]]; then
136
HOSTNAME=`hostname`
137
fi
0 commit comments