MCPcopy Index your code
hub / github.com/saltstack/salt / fetch_request_check

Method fetch_request_check

salt/utils/gitfs.py:1350–1365  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1348 self.url = self.id
1349
1350 def fetch_request_check(self):
1351 fetch_request = salt.utils.path.join(self._salt_working_dir, "fetch_request")
1352 if os.path.isfile(fetch_request):
1353 log.debug("Fetch request: %s", self._salt_working_dir)
1354 try:
1355 os.remove(fetch_request)
1356 except OSError as exc:
1357 log.error(
1358 "Failed to remove Fetch request: %s %s",
1359 self._salt_working_dir,
1360 exc,
1361 exc_info=True,
1362 )
1363 self.fetch()
1364 return True
1365 return False
1366
1367 @property
1368 def linkdir_walk(self):

Callers 3

__init__Method · 0.95
checkoutMethod · 0.80
checkoutMethod · 0.80

Calls 4

fetchMethod · 0.95
debugMethod · 0.80
removeMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected