]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
ts-openstack-deploy: Keep CURL_CA_BUNDLE when sudo is called openstack-nova-v11
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 27 Apr 2017 14:04:15 +0000 (15:04 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Thu, 27 Apr 2017 14:11:23 +0000 (15:11 +0100)
This is part of commit "ts-openstack-deploy: set CURL_CA_BUNDLE" but
also allow pip to work when it is called via sudo without preserving the
existing environment variables.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
ts-openstack-deploy

index 119958b0909112d4015484191c932fdaa9facffa..fa2bda5bb8f1eb390d84b0ca1d2b6cf38aca12fb 100755 (executable)
@@ -133,6 +133,7 @@ END
     target_putfilecontents_root_stash($ho, 100,
         <<END, "/etc/sudoers.d/devstack");
 osstest ALL=(ALL) NOPASSWD:ALL
+Defaults:osstest env_keep += "CURL_CA_BUNDLE"
 END
 }