From: Ben Steffen Date: Tue, 26 Nov 2019 19:39:57 +0000 (-0500) Subject: Fix whitespace and argument name X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-base.git/commitdiff_plain/5b789bfea790ed09fc332baf7a482ab1c606d85a?ds=inline Fix whitespace and argument name --- diff --git a/python/invirt/remctl.py b/python/invirt/remctl.py index d64a10f..4150226 100644 --- a/python/invirt/remctl.py +++ b/python/invirt/remctl.py @@ -9,6 +9,7 @@ import socket def kinit(principal=None, keytab=None): """Kinit with a given username and keytab""" + if principal is None: principal = 'daemon/' + getfqdn() if keytab is None: @@ -26,8 +27,9 @@ def check_kinit(principal=None, keytab=None): #TODO: Does this return a specific error code that we can check for? kinit(principal, keytab) -def remctl(host, *args, **kws): - """Perform a remctl and return the output. +def remctl(host, *args, **kwargs): + """ + Perform a remctl and return the output. kinits if necessary, and outputs errors to stderr. """