Merge "Execute source before running non-interactive ssh"

This commit is contained in:
Jenkins 2016-08-04 16:30:29 +00:00 committed by Gerrit Code Review
commit f70388e0ea
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ fi
echo "Found Hypervisor hostname: $HYPERVISOR"
fc_pci_device_cmd="echo \$$FC_PCI_VAR_NAME"
fc_pci_device=$(ssh -i $PROVIDER_KEY $PROVIDER_USER@$HYPERVISOR "$fc_pci_device_cmd")
fc_pci_device=$(ssh -i $PROVIDER_KEY $PROVIDER_USER@$HYPERVISOR "source /etc/profile; $fc_pci_device_cmd")
if [[ -z $fc_pci_device ]]; then
echo "No FC device known. Set fc_pci_device in your /etc/profile.d or /etc/environment (depending on distro and ssh configuration) to the desired 'Class Device path', e.g. '0000:21:00.2'"