From d19020a19a60f4ac4f8be7baf078ae03656a4b48 Mon Sep 17 00:00:00 2001
From: Mike Hanby <mhanby@uab.edu>
Date: Tue, 29 Jan 2019 00:11:23 -0500
Subject: [PATCH] Added a conditional test to the compute_create script to exit
 if the user does not provide a compute node name as the argument

---
 compute_create | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/compute_create b/compute_create
index 644b75f..e7e3c6d 100755
--- a/compute_create
+++ b/compute_create
@@ -7,6 +7,11 @@
 #
 # node is constrained to boot on the internal "compute" network
 
+if [[ "$1" == "" ]]; then
+  echo "Please provide the name for the new compute node as the only argument"
+  exit 1
+fi
+
 nodename="$1"
 
 # Ensure that the $HOME/iso directory exists
-- 
GitLab