Skip to content

Commit bd639bf

Browse files
CLOUDSTACK-5520 CLOUDSTACK-5418 Script errors seen when trying to seed the 64 bit Xenserver templates.
1 parent 18fd015 commit bd639bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/storage/secondary/createtmplt.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ isCifs() {
174174
#then check if the template file is from cifs using df -P filename
175175
#Currently only cifs is supported in hyperv zone.
176176
mount | grep "type cifs" > /dev/null
177-
return $?
177+
echo $?
178178
}
179179

180180
if [ "$tflag$nflag$fflag$sflag" != "1111" ]
@@ -204,7 +204,7 @@ rollback_if_needed $tmpltfs $? "tar archives not supported\n"
204204

205205
if [ ${tmpltname%.vhd} != ${tmpltname} ]
206206
then
207-
if [ isCifs -ne 0 ] ;
207+
if [ $(isCifs) -ne 0 ] ;
208208
then
209209
if which vhd-util &>/dev/null
210210
then

0 commit comments

Comments
 (0)