Changeset a0c2866 for fedd/federation


Ignore:
Timestamp:
Dec 10, 2010 9:19:57 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
ddf0903
Parents:
52b6ebc
Message:

Make sure there is an abac directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/client_lib.py

    r52b6ebc ra0c2866  
    147147    else: url = default_url
    148148
     149    if opts.abac_dir:
     150        if not os.access(opts.abac_dir, os.F_OK):
     151            raise RuntimeError("No ABAC directory: %s" % opts.abac_dir)
     152        elif not os.path.isdir(opts.abac_dir):
     153            raise RuntimeError("ABAC directory not a directory: %s" \
     154                    % opts.abac_dir)
     155        elif not os.access(opts.abac_dir, os.W_OK):
     156            raise RuntimeError("Cannot write to ABAC directory: %s" \
     157                    % opts.abac_dir)
     158
     159
    149160
    150161    return (cert, fid, url)
Note: See TracChangeset for help on using the changeset viewer.