File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
usr/lib/python3/dist-packages/linuxmusterLinuxclient7 Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,13 @@ def _clearUserCache(unattended=False):
126126 if not _checkLoggedInUsers ():
127127 return False
128128
129- realm .clearUserCache ()
129+ result = realm .clearUserCache ()
130+ if not result :
131+ logging .error ("Failed to clear user cache!" )
132+ return False
130133
131134 logging .info ("Done." )
132-
133- return realm .clearUserCache ()
135+ return True
134136
135137def _unmountAllCifsMounts ():
136138 logging .info ("Unmounting all CIFS mounts!" )
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ def setup(domain=None, user=None):
1515 """
1616 logging .info ('#### linuxmuster-linuxclient7 setup ####' )
1717
18- if not realm .clearUserCache ():
18+ userCacheCleared = realm .clearUserCache ()
19+ if not userCacheCleared and isSetup ():
1920 return False
2021
2122 if not _cleanOldDomainJoins ():
You can’t perform that action at this time.
0 commit comments