JIRA: YARDSTICK-340
Change-Id: I0e754df3a6f0869241ae2bdd5d0090182ebcce6b
Signed-off-by: JingLu5 <lvjing5@huawei.com>
     error "Can not talk to $ip."
 }
 
+YARD_IMG_ARCH=amd64
+export YARD_IMG_ARCH
+
 ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
 
 if [ "$INSTALLER_TYPE" == "fuel" ]; then
     root@${INSTALLER_IP}:~/.ssh/id_rsa /root/.ssh/id_rsa &> /dev/null
 
     ARCH_SCRIPT="test -f /etc/fuel_openstack_arch && grep -q arm64 /etc/fuel_openstack_arch"
-    YARD_IMG_ARCH=amd64
     sshpass -p r00tme ssh $ssh_options -l root $INSTALLER_IP "${ARCH_SCRIPT}" && YARD_IMG_ARCH=arm64
     export YARD_IMG_ARCH
 
     fi
 
 fi
+