1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvmdbusd: Rename ee to got_external_event

This variable is global, make it more descriptive.
This commit is contained in:
Tony Asleson 2017-03-20 09:43:34 -05:00
parent b65a9230a3
commit 862ca6e8b7
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ bus = None
args = None
# Set to true if we are depending on external events for updates
ee = False
got_external_event = False
# Shared state variable across all processes
run = multiprocessing.Value('i', 1)

View File

@ -206,7 +206,7 @@ class Manager(AutomatedProperties):
utils.log_debug("ExternalEvent received, disabling "
"udev monitoring")
# We are dependent on external events now to stay current!
cfg.ee = True
cfg.got_external_event = True
r = RequestEntry(
-1, Manager._external_event, (command,), None, None, False)

View File

@ -512,7 +512,7 @@ def add_no_notify(cmdline):
# Only after we have seen an external event will be disable lvm from sending
# us one when we call lvm
if cfg.ee:
if cfg.got_external_event:
if 'help' in cmdline:
return cmdline