Skip to content

Commit

Permalink
move fetch_request to try else
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcmarrow committed Aug 27, 2023
1 parent fea95bb commit 0e675a2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions salt/utils/gitfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,9 @@ def __init__(
else:
self.verify_auth()
self.setup_callbacks()

if not os.path.isdir(self._salt_working_dir):
os.makedirs(self._salt_working_dir)
self.fetch_request_check()
if not os.path.isdir(self._salt_working_dir):
os.makedirs(self._salt_working_dir)
self.fetch_request_check()

def get_cache_basehash(self):
return self._cache_basehash
Expand Down

0 comments on commit 0e675a2

Please sign in to comment.