Fix sriov flag on AWS

This needs to be set to nil if empty.

Signed-off-by: Justin Cormack <justin@specialbusservice.com>
This commit is contained in:
Justin Cormack 2017-12-27 18:17:45 +00:00
parent d19adc172f
commit 1e97929ec5

View File

@ -48,6 +48,9 @@ func pushAWS(args []string) {
timeout := getIntValue(timeoutVar, *timeoutFlag, 600)
bucket := getStringValue(bucketVar, *bucketFlag, "")
name := getStringValue(nameVar, *nameFlag, "")
if *sriovNetFlag == "" {
sriovNetFlag = nil
}
sess := session.Must(session.NewSession())
storage := s3.New(sess)