+ # support for either setting debug at the top of this file, or on the command-line
+ if args.debug:
+ global debug
+ debug=True
+
+ # somehow some older nodes won't be able to find the login name in /etc/passwd
+ # when this is done down the road, so compute slice_uid while in a safe env
+ # even though we don't use the slice_uid any more, this is still
+ # checked later on as a means to ensure existence of the slice account
+ try:
+ slice_uid = pwd.getpwnam(slice_name).pw_uid
+ except Exception, e:
+ if debug:
+ import traceback
+ print 'error while computing slice_uid',e
+ traceback.print_exc()
+ slice_uid=None
+