=== modified file 'mandos-ctl' --- mandos-ctl 2012-05-05 09:27:47 +0000 +++ mandos-ctl 2012-05-05 09:33:27 +0000 @@ -17,7 +17,8 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# along with this program. If not, see +# . # # Contact the authors at . # @@ -207,7 +208,7 @@ parser.add_argument("client", nargs="*", help="Client name") options = parser.parse_args() - if has_actions(options) and not options.client and not options.all: + if has_actions(options) and not (options.client or options.all): parser.error("Options require clients names or --all.") if options.verbose and has_actions(options): parser.error("--verbose can only be used alone or with" === modified file 'mandos-monitor' --- mandos-monitor 2012-05-03 18:51:48 +0000 +++ mandos-monitor 2012-05-05 09:33:27 +0000 @@ -17,7 +17,8 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# along with this program. If not, see +# . # # Contact the authors at . # @@ -304,13 +305,13 @@ message = "Denial in {0}. (a)pprove?" message = message.format(unicode(timer).rsplit(".", 1)[0]) elif self.properties["LastCheckerStatus"] != 0: - # When checker has failed, print a timer until client expires + # When checker has failed, show timer until client expires expires = self.properties["Expires"] if expires == "": timer = datetime.timedelta(0) else: - expires = datetime.datetime.strptime(expires, - '%Y-%m-%dT%H:%M:%S.%f') + expires = (datetime.datetime.strptime + (expires, '%Y-%m-%dT%H:%M:%S.%f')) timer = expires - datetime.datetime.utcnow() message = ('A checker has failed! Time until client' ' gets disabled: {0}'