summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-07-08 08:45:59 -0500
committerDaniil Baturin <daniil@vyos.io>2021-07-08 08:45:59 -0500
commit63713fc60c0fff8a6c6eabcba21191b347bfb8b4 (patch)
tree633b3fb53810fed49e6036b19d060e50ee8ae32b /python/vyos
parent17dff308810497aab19428a6340a4261d91893e4 (diff)
downloadvyos-1x-63713fc60c0fff8a6c6eabcba21191b347bfb8b4.tar.gz
vyos-1x-63713fc60c0fff8a6c6eabcba21191b347bfb8b4.zip
T3663: fix the call to time.time() to match the new import scheme.
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py
index 171ab397f..553e995df 100644
--- a/python/vyos/util.py
+++ b/python/vyos/util.py
@@ -522,7 +522,7 @@ def wait_for_inotify(file_path, event_type=None, timeout=None, sleep_interval=0.
i.add_watch(os.path.dirname(file_path))
for event in i.event_gen(yield_nones=True):
- if (timeout is not None) and ((time.time() - time_start) > timeout):
+ if (timeout is not None) and ((time() - time_start) > timeout):
# If the function didn't return until this point,
# the file failed to have been written to and closed within the timeout
raise OSError("Waiting for file {} to be written has failed".format(file_path))