Revision b7d7876b lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
8252 | 8252 |
self.needed_locks[locking.LEVEL_NODE] = locking.ALL_SET |
8253 | 8253 |
self.op.src_node = None |
8254 | 8254 |
if os.path.isabs(src_path): |
8255 |
raise errors.OpPrereqError("Importing an instance from an absolute"
|
|
8256 |
" path requires a source node option",
|
|
8255 |
raise errors.OpPrereqError("Importing an instance from a path"
|
|
8256 |
" requires a source node option", |
|
8257 | 8257 |
errors.ECODE_INVAL) |
8258 | 8258 |
else: |
8259 | 8259 |
self.op.src_node = src_node = _ExpandNodeName(self.cfg, src_node) |
Also available in: Unified diff