diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2018-02-12 15:48:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-12 15:48:28 +0200 |
commit | 216118a3eea057a145c1c08dc5c6b3949c742467 (patch) | |
tree | f274f120d6d6969b1502356d58488767906667b5 /example | |
parent | 40349eb24d811fd7031803c1b3e47e181f0e9211 (diff) | |
parent | efc27f156c146727e8e4de391b242174e6afcd8f (diff) | |
download | pysaml2-216118a3eea057a145c1c08dc5c6b3949c742467.tar.gz |
Merge pull request #398 from qianlei90/master
fix example idp - use default value for path parameter in idp service
Diffstat (limited to 'example')
-rwxr-xr-x | example/idp2/idp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/idp2/idp.py b/example/idp2/idp.py index e2260316..5e924f49 100755 --- a/example/idp2/idp.py +++ b/example/idp2/idp.py @@ -942,7 +942,7 @@ NON_AUTHN_URLS = [ def metadata(environ, start_response): try: - path = args.path + path = args.path[:] if path is None or len(path) == 0: path = os.path.dirname(os.path.abspath(__file__)) if path[-1] != "/": @@ -1042,7 +1042,7 @@ def application(environ, start_response): if __name__ == '__main__': parser = argparse.ArgumentParser() - parser.add_argument('-p', dest='path', help='Path to configuration file.') + parser.add_argument('-p', dest='path', help='Path to configuration file.', default='./idp_conf.py') parser.add_argument('-v', dest='valid', help="How long, in days, the metadata is valid from " "the time of creation") |