Revision 3eccac06 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
4688 | 4688 |
|
4689 | 4689 |
_CheckNodeOnline(self, src_node) |
4690 | 4690 |
result = self.rpc.call_export_info(src_node, src_path) |
4691 |
result.Raise() |
|
4692 |
if not result.data: |
|
4693 |
raise errors.OpPrereqError("No export found in dir %s" % src_path) |
|
4691 |
msg = result.RemoteFailMsg() |
|
4692 |
if msg: |
|
4693 |
raise errors.OpPrereqError("No export or invalid export found in" |
|
4694 |
" dir %s: %s" % (src_path, msg)) |
|
4694 | 4695 |
|
4695 |
export_info = result.data
|
|
4696 |
export_info = objects.SerializableConfigParser.Loads(str(result.payload))
|
|
4696 | 4697 |
if not export_info.has_section(constants.INISECT_EXP): |
4697 | 4698 |
raise errors.ProgrammerError("Corrupted export config") |
4698 | 4699 |
|
Also available in: Unified diff