Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

patch for GH-65

  • Loading branch information...
commit 374bb2e832efbb24c7dd0f0556efda83422750fa 1 parent 7795e8c
@buzztroll buzztroll authored
View
4 home/libexec/nimbus_edit_user.py
@@ -25,6 +25,7 @@
from nimbusweb.setup.setuperrors import *
from nimbusweb.setup.groupauthz import *
from optparse import SUPPRESS_HELP
+import shutil
g_report_options = ["dn", "canonical_id", "access_id", "access_secret", "group"]
@@ -140,8 +141,7 @@ def remove_gridmap(dn):
print "WARNING! user not found in %s" % (dn)
os.close(nf)
f.close()
- os.unlink(gmf)
- os.rename(new_name, gmf)
+ shutil.move((new_name, gmf)
def report_results(o, db):
View
4 home/libexec/nimbus_new_user.py
@@ -31,6 +31,7 @@
from nimbusweb.setup.setuperrors import *
from nimbusweb.setup.groupauthz import *
from optparse import SUPPRESS_HELP
+import shutil
g_report_options = ["cert", "key", "dn", "canonical_id", "access_id", "access_secret", "url", "web_id", "cloud_properties"]
@@ -91,8 +92,7 @@ def remove_gridmap(dn):
print "WARNING! user not found in %s" % (dn)
os.close(nf)
f.close()
- os.unlink(gmf)
- os.rename(new_name, gmf)
+ shutil.move((new_name, gmf)
def generate_cert(o):
nimbus_home = get_nimbus_home()
View
4 home/libexec/nimbus_remove_user.py
@@ -25,6 +25,7 @@
from nimbusweb.setup.setuperrors import *
from nimbusweb.setup.groupauthz import *
import traceback
+import shutil
g_created_cert_files=False
g_report_options = ["cert", "key", "dn", "canonical_id", "access_id", "access_secret", "url", "web_id"]
@@ -89,8 +90,7 @@ def remove_gridmap(dn):
print "WARNING! user DN not found in gridmap: %s" % (dn)
os.close(nf)
f.close()
- os.unlink(gmf)
- os.rename(new_name, gmf)
+ shutil.move(new_name, gmf)
def delete_user(o):
con_str = pycb.config.authzdb
View
2  scripts/make-dist.sh
@@ -27,7 +27,7 @@ echo "Nimbus git repository: $repo"
echo "Created temp directory: $co_dir"
cd $co_dir
-git clone $repo
+git clone --depth 1 $repo
cd nimbus/cumulus/deps
./get-em.sh

0 comments on commit 374bb2e

Please sign in to comment.
Something went wrong with that request. Please try again.