Skip to content

Commit fce8bad

Browse files
committed
Rename FORCE_REFRESH_DOMAIN_LIST to force_refresh_domain_list
New pylint correctly found it isn't really a constant, so should have lowercase name.
1 parent 8154c71 commit fce8bad

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

qubes/tools/qmemmand.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
# (refresh domain list) before processing other changes, every time some
4747
# process requested memory for a new VM, before releasing the lock. Then
4848
# XS_Watcher will check this flag before processing other event.
49-
FORCE_REFRESH_DOMAIN_LIST = False
49+
force_refresh_domain_list = False
5050

5151

5252
def unique_per_list(list1, list2):
@@ -153,10 +153,10 @@ def meminfo_changed(self, domid):
153153
with GLOBAL_LOCK:
154154
self.log.debug("GLOBAL_LOCK acquired")
155155
try:
156-
global FORCE_REFRESH_DOMAIN_LIST
157-
if FORCE_REFRESH_DOMAIN_LIST:
156+
global force_refresh_domain_list
157+
if force_refresh_domain_list:
158158
self.domain_list_changed(refresh_only=True)
159-
FORCE_REFRESH_DOMAIN_LIST = False
159+
force_refresh_domain_list = False
160160
if domid not in self.watch_token_dict:
161161
# Domain was just destroyed.
162162
return
@@ -196,8 +196,8 @@ def handle(self):
196196
if len(self.data) == 0:
197197
self.log.info("client disconnected, resuming membalance")
198198
if got_lock:
199-
global FORCE_REFRESH_DOMAIN_LIST
200-
FORCE_REFRESH_DOMAIN_LIST = True
199+
global force_refresh_domain_list
200+
force_refresh_domain_list = True
201201
return
202202

203203
# XXX something is wrong here: return without release?

0 commit comments

Comments
 (0)