From 6b34297e5256a33e5953b359471cb629cce636da Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Sun, 31 Dec 2017 23:59:59 +0000 Subject: [PATCH] Remove trailing spaces in file xCAT-OpenStack-baremetal/share/xcat/openstack/postscripts/deconfig_ops_bm_node --- .../share/xcat/openstack/postscripts/deconfig_ops_bm_node | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-OpenStack-baremetal/share/xcat/openstack/postscripts/deconfig_ops_bm_node b/xCAT-OpenStack-baremetal/share/xcat/openstack/postscripts/deconfig_ops_bm_node index 81ef22564..f8b1866d4 100755 --- a/xCAT-OpenStack-baremetal/share/xcat/openstack/postscripts/deconfig_ops_bm_node +++ b/xCAT-OpenStack-baremetal/share/xcat/openstack/postscripts/deconfig_ops_bm_node @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh # IBM(c) 2014 EPL license http://www.eclipse.org/legal/epl-v10.html # xCAT post script for deconfiguring the openstack baremetal node. @@ -37,7 +37,7 @@ change_host_name() if [ "$str_os_type" = "sles" ];then echo "Persistently changing the hostname not implemented yet." #debian ubuntu and rh7 - elif [ -f "/etc/hostname" ];then + elif [ -f "/etc/hostname" ];then conf_file="/etc/hostname" echo "$str_hostname" > $conf_file else @@ -75,7 +75,7 @@ if [[ -n $1 ]]; then echo "nic=$nic, ops_ip=$ops_ip" ifconfig $nic del $ops_ip - + #delete the configuration file if [ "$str_os_type" = "sles" ]; then str_conf_file="/etc/sysconfig/network/ifcfg-$nic"