Revision e2334900
b/lib/cmdlib.py | ||
---|---|---|
2882 | 2882 |
for key, val in mods: |
2883 | 2883 |
if key == constants.DDM_ADD: |
2884 | 2884 |
if val in lst: |
2885 |
feedback_fn("OS %s already in %s, ignoring", val, desc)
|
|
2885 |
feedback_fn("OS %s already in %s, ignoring" % (val, desc))
|
|
2886 | 2886 |
else: |
2887 | 2887 |
lst.append(val) |
2888 | 2888 |
elif key == constants.DDM_REMOVE: |
2889 | 2889 |
if val in lst: |
2890 | 2890 |
lst.remove(val) |
2891 | 2891 |
else: |
2892 |
feedback_fn("OS %s not found in %s, ignoring", val, desc)
|
|
2892 |
feedback_fn("OS %s not found in %s, ignoring" % (val, desc))
|
|
2893 | 2893 |
else: |
2894 | 2894 |
raise errors.ProgrammerError("Invalid modification '%s'" % key) |
2895 | 2895 |
|
Also available in: Unified diff