diff options
author | Daniil Baturin <daniil@vyos.io> | 2021-07-08 08:45:59 -0500 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2021-07-13 06:58:25 -0500 |
commit | e7f89d4d45fedca6d1df0c15a8bce79c82b76aa8 (patch) | |
tree | 2bfcb506aaf7bdcce50cd40b6da20d9f2c9ec7e6 /python | |
parent | 517d78973430e49946c130dffa6e99d6d55865e1 (diff) | |
download | vyos-1x-e7f89d4d45fedca6d1df0c15a8bce79c82b76aa8.tar.gz vyos-1x-e7f89d4d45fedca6d1df0c15a8bce79c82b76aa8.zip |
T3663: fix the call to time.time() to match the new import scheme.
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py index e8f1aabeb..d2758aff3 100644 --- a/python/vyos/util.py +++ b/python/vyos/util.py @@ -525,7 +525,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)) |