Commit af965d3c authored by Samuel GAIST's avatar Samuel GAIST Committed by Samuel GAIST
Browse files

[common] Fix candidate filtering.

The filtering was done on the thruthiness of the symbol
string content.
parent c05b34fc
Pipeline #38929 passed with stage
in 4 minutes and 1 second
......@@ -1283,7 +1283,7 @@ def status(webapi, prefix, asset_type):
else:
symbol = ModificationStatus.NO_CHANGES # no changes
if symbol:
if symbol != ModificationStatus.NO_CHANGES:
logger.info(
"[%s] %s/%s (@%s)",
symbol,
......@@ -1407,7 +1407,11 @@ def push(
if not force: # filter again, if no local changes
candidates = collections.OrderedDict(
[(k, v) for k, v in candidates.items() if v]
[
(asset_name, modification_status)
for asset_name, modification_status in candidates.items()
if modification_status != ModificationStatus.NO_CHANGES
]
)
if not candidates:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment