aboutsummaryrefslogtreecommitdiffstats
path: root/src/booking/quick_deployer.py
diff options
context:
space:
mode:
authorSean Smith <ssmith@iol.unh.edu>2021-02-24 12:18:45 -0500
committerSean Smith <ssmith@iol.unh.edu>2021-03-23 18:09:39 -0400
commite817c3203fde0ca9bfb66a00919050cbdd1179e8 (patch)
tree2c1d08b7371c5245b407a334cc44e1490e674a65 /src/booking/quick_deployer.py
parentdb4c2dc4c4f0d86e0a00e8409eed74a0bcffb20b (diff)
Front end fixes for enforcing hostname
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: I0a077307a2e1bcfef5b31acdaf4ecb73be64fff9
Diffstat (limited to 'src/booking/quick_deployer.py')
-rw-r--r--src/booking/quick_deployer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/booking/quick_deployer.py b/src/booking/quick_deployer.py
index 8b3af6c..7865ee4 100644
--- a/src/booking/quick_deployer.py
+++ b/src/booking/quick_deployer.py
@@ -111,7 +111,8 @@ def update_template(old_template, image, hostname, user):
profile=old_config.profile,
image=image_to_set,
template=template,
- is_head_node=old_config.is_head_node
+ is_head_node=old_config.is_head_node,
+ name=hostname if len(old_template.getConfigs()) == 1 else old_config.name
)
for old_iface_config in old_config.interface_configs.all():