Merge "Fix --no-kinit option throwing a traceback"
This commit is contained in:
commit
292ae20fe0
@ -283,6 +283,8 @@ class NovajoinRole(object):
|
|||||||
if self.ccache_name:
|
if self.ccache_name:
|
||||||
current_ccache = os.environ.get('KRB5CCNAME')
|
current_ccache = os.environ.get('KRB5CCNAME')
|
||||||
os.environ['KRB5CCNAME'] = self.ccache_name
|
os.environ['KRB5CCNAME'] = self.ccache_name
|
||||||
|
else:
|
||||||
|
current_ccache = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if os.path.exists(self.keytab):
|
if os.path.exists(self.keytab):
|
||||||
|
Loading…
Reference in New Issue
Block a user