Reverse argument --redact-password : print passwords in settings if set
authorBenoît Fontaine <benoitfontaine.ba@gmail.com>
Thu, 28 Mar 2019 21:18:19 +0000 (22:18 +0100)
committerBenoît Fontaine <benoitfontaine.ba@gmail.com>
Thu, 28 Mar 2019 21:18:19 +0000 (22:18 +0100)
getmyancestors.py

index 1ec8c0b4642263daa7e2234a794a7c3f367676b8..b9ca1d87681deb800c1c03b013a596d09ebd493a 100755 (executable)
@@ -949,7 +949,7 @@ if __name__ == '__main__':
                 username
                     if action.dest is 'u'
                 else '******'
-                    if action.dest is 'p' and args.redact_password
+                    if action.dest is 'p' and not args.redact_password
                 else password
                     if action.dest is 'p'
                 else str(vars(args)[action.dest].name)