projects
/
invirt/packages/invirt-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7fc7707
)
Fix whitespace and argument name
author
Ben Steffen
<bds@mit.edu>
Tue, 26 Nov 2019 19:39:57 +0000
(14:39 -0500)
committer
Ben Steffen
<bds@mit.edu>
Tue, 26 Nov 2019 19:39:57 +0000
(14:39 -0500)
python/invirt/remctl.py
patch
|
blob
|
history
diff --git
a/python/invirt/remctl.py
b/python/invirt/remctl.py
index
d64a10f
..
4150226
100644
(file)
--- 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"""
def kinit(principal=None, keytab=None):
"""Kinit with a given username and keytab"""
+
if principal is None:
principal = 'daemon/' + getfqdn()
if keytab is None:
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)
#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.
"""
kinits if necessary, and outputs errors to stderr.
"""