From b4f060599ad885aad25dcf94b04dba4673b49143 Mon Sep 17 00:00:00 2001
From: Nikita Tarasov
authversion
+
+ Optionally, specify the OpenStack Auth's version,for example 3
. The driver use 0 (autodetect) by default.
+
chunksize
diff --git a/registry/storage/driver/swift/swift_test.go b/registry/storage/driver/swift/swift_test.go
index b4f1c738..655aa996 100644
--- a/registry/storage/driver/swift/swift_test.go
+++ b/registry/storage/driver/swift/swift_test.go
@@ -53,7 +53,7 @@ func init() {
trustID = os.Getenv("SWIFT_TRUST_ID")
container = os.Getenv("SWIFT_CONTAINER_NAME")
region = os.Getenv("SWIFT_REGION_NAME")
- AuthVersion = strconv.Atoi(os.Getenv("SWIFT_AUTH_VERSION"))
+ AuthVersion, _ = strconv.Atoi(os.Getenv("SWIFT_AUTH_VERSION"))
insecureSkipVerify, _ = strconv.ParseBool(os.Getenv("SWIFT_INSECURESKIPVERIFY"))
secretKey = os.Getenv("SWIFT_SECRET_KEY")
accessKey = os.Getenv("SWIFT_ACCESS_KEY")