Revision 159d4ec6 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
8109 | 8109 |
self.target.AddTag(tag) |
8110 | 8110 |
except errors.TagError, err: |
8111 | 8111 |
raise errors.OpExecError("Error while setting tag: %s" % str(err)) |
8112 |
try: |
|
8113 |
self.cfg.Update(self.target, feedback_fn) |
|
8114 |
except errors.ConfigurationError: |
|
8115 |
raise errors.OpRetryError("There has been a modification to the" |
|
8116 |
" config file and the operation has been" |
|
8117 |
" aborted. Please retry.") |
|
8112 |
self.cfg.Update(self.target, feedback_fn) |
|
8118 | 8113 |
|
8119 | 8114 |
|
8120 | 8115 |
class LUDelTags(TagsLU): |
... | ... | |
8148 | 8143 |
""" |
8149 | 8144 |
for tag in self.op.tags: |
8150 | 8145 |
self.target.RemoveTag(tag) |
8151 |
try: |
|
8152 |
self.cfg.Update(self.target, feedback_fn) |
|
8153 |
except errors.ConfigurationError: |
|
8154 |
raise errors.OpRetryError("There has been a modification to the" |
|
8155 |
" config file and the operation has been" |
|
8156 |
" aborted. Please retry.") |
|
8146 |
self.cfg.Update(self.target, feedback_fn) |
|
8157 | 8147 |
|
8158 | 8148 |
|
8159 | 8149 |
class LUTestDelay(NoHooksLU): |
Also available in: Unified diff