Revision b459a848 tools/move-instance
b/tools/move-instance | ||
---|---|---|
22 | 22 |
|
23 | 23 |
""" |
24 | 24 |
|
25 |
# pylint: disable-msg=C0103
|
|
25 |
# pylint: disable=C0103 |
|
26 | 26 |
# C0103: Invalid name move-instance |
27 | 27 |
|
28 | 28 |
import os |
... | ... | |
40 | 40 |
from ganeti import compat |
41 | 41 |
from ganeti import rapi |
42 | 42 |
|
43 |
import ganeti.rapi.client # pylint: disable-msg=W0611
|
|
43 |
import ganeti.rapi.client # pylint: disable=W0611 |
|
44 | 44 |
import ganeti.rapi.client_utils |
45 | 45 |
|
46 | 46 |
|
... | ... | |
662 | 662 |
|
663 | 663 |
|
664 | 664 |
class MoveSourceWorker(workerpool.BaseWorker): |
665 |
def RunTask(self, rapi_factory, move): # pylint: disable-msg=W0221
|
|
665 |
def RunTask(self, rapi_factory, move): # pylint: disable=W0221 |
|
666 | 666 |
"""Executes an instance move. |
667 | 667 |
|
668 | 668 |
@type rapi_factory: L{RapiClientFactory} |
... | ... | |
696 | 696 |
(mrt.src_error_message, mrt.dest_error_message)) |
697 | 697 |
else: |
698 | 698 |
move.error_message = None |
699 |
except Exception, err: # pylint: disable-msg=W0703
|
|
699 |
except Exception, err: # pylint: disable=W0703 |
|
700 | 700 |
logging.exception("Caught unhandled exception") |
701 | 701 |
move.error_message = str(err) |
702 | 702 |
|
Also available in: Unified diff