From 5b789bfea790ed09fc332baf7a482ab1c606d85a Mon Sep 17 00:00:00 2001 From: Ben Steffen Date: Tue, 26 Nov 2019 14:39:57 -0500 Subject: [PATCH] Fix whitespace and argument name --- python/invirt/remctl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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. """ -- 1.7.9.5