mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
lvmdbusd: Rename ee to got_external_event
This variable is global, make it more descriptive.
This commit is contained in:
parent
b65a9230a3
commit
862ca6e8b7
@ -26,7 +26,7 @@ bus = None
|
|||||||
args = None
|
args = None
|
||||||
|
|
||||||
# Set to true if we are depending on external events for updates
|
# Set to true if we are depending on external events for updates
|
||||||
ee = False
|
got_external_event = False
|
||||||
|
|
||||||
# Shared state variable across all processes
|
# Shared state variable across all processes
|
||||||
run = multiprocessing.Value('i', 1)
|
run = multiprocessing.Value('i', 1)
|
||||||
|
@ -206,7 +206,7 @@ class Manager(AutomatedProperties):
|
|||||||
utils.log_debug("ExternalEvent received, disabling "
|
utils.log_debug("ExternalEvent received, disabling "
|
||||||
"udev monitoring")
|
"udev monitoring")
|
||||||
# We are dependent on external events now to stay current!
|
# We are dependent on external events now to stay current!
|
||||||
cfg.ee = True
|
cfg.got_external_event = True
|
||||||
|
|
||||||
r = RequestEntry(
|
r = RequestEntry(
|
||||||
-1, Manager._external_event, (command,), None, None, False)
|
-1, Manager._external_event, (command,), None, None, False)
|
||||||
|
@ -512,7 +512,7 @@ def add_no_notify(cmdline):
|
|||||||
|
|
||||||
# Only after we have seen an external event will be disable lvm from sending
|
# Only after we have seen an external event will be disable lvm from sending
|
||||||
# us one when we call lvm
|
# us one when we call lvm
|
||||||
if cfg.ee:
|
if cfg.got_external_event:
|
||||||
if 'help' in cmdline:
|
if 'help' in cmdline:
|
||||||
return cmdline
|
return cmdline
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user