def kinit(principal=None, keytab=None):
"""Kinit with a given username and keytab"""
+
if principal is None:
principal = 'daemon/' + getfqdn()
if keytab is 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.
"""