Refactor logic for OSX etcd cURL statement
The previous implementation of this statement would have caused two cURL
executions on MacOS.
@@ -183,11 +183,10 @@ function os::util::curl_etcd() {
curl --fail --silent --cacert "${ca_bundle}" \
--cert "${etcd_client_cert_p12}:${etcd_client_cert_p12_password}" "${full_url}"
- fi
-
-
+ else
curl --fail --silent --cacert "${ca_bundle}" \
--cert "${etcd_client_cert}" --key "${etcd_client_key}" "${full_url}"
+ fi
}
# os::util::host_platform determines what the host OS and architecture
