Skip to content

Commit 1774d3d

Browse files
committed
Add quotations around keyvalue:pair spaced strings
As some people may want or need spaces for their Foreman OS, partition tables or medium we should wrap this around our move command in our example /opt/quads/bin/move-and-rebuild-host.sh Related-to: 88fd40d Change-Id: If67f6f4c12dd777487e924eaf1bf4465a5da7d8b
1 parent d47f810 commit 1774d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/move-and-rebuild-host.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ if $rebuild ; then
225225
hammer host set-parameter --host $host_to_move --name rhel73 --value false
226226
hammer host set-parameter --host $host_to_move --name rhel75 --value false
227227
# we will also force a specific OS, partition table and media option, you should adjust this to your environment
228-
hammer host update --name $host_to_move --build 1 --operatingsystem $foreman_default_os --partition-table $foreman_default_ptable --medium $foreman_default_medium
228+
hammer host update --name $host_to_move --build 1 --operatingsystem "$foreman_default_os" --partition-table "$foreman_default_ptable" --medium "$foreman_default_medium"
229229
# power host off and on for rebuild
230230
ipmitool -I lanplus -H mgmt-$host_to_move -U $ipmi_username -P $ipmi_password chassis power off
231231
sleep 30

0 commit comments

Comments
 (0)