Revision b459a848 lib/client/gnt_cluster.py
b/lib/client/gnt_cluster.py | ||
---|---|---|
20 | 20 |
|
21 | 21 |
"""Cluster related commands""" |
22 | 22 |
|
23 |
# pylint: disable-msg=W0401,W0613,W0614,C0103
|
|
23 |
# pylint: disable=W0401,W0613,W0614,C0103 |
|
24 | 24 |
# W0401: Wildcard import ganeti.cli |
25 | 25 |
# W0613: Unused argument, since all functions follow the same API |
26 | 26 |
# W0614: Unused import %s from wildcard import (since we need cli) |
... | ... | |
622 | 622 |
cl = GetClient() |
623 | 623 |
cl.QueryClusterInfo() |
624 | 624 |
return 0 |
625 |
except Exception: # pylint: disable-msg=W0703
|
|
625 |
except Exception: # pylint: disable=W0703 |
|
626 | 626 |
return 1 |
627 | 627 |
|
628 | 628 |
|
... | ... | |
685 | 685 |
|
686 | 686 |
OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, |
687 | 687 |
rapi_cert_pem) |
688 |
except Exception, err: # pylint: disable-msg=W0703
|
|
688 |
except Exception, err: # pylint: disable=W0703 |
|
689 | 689 |
ToStderr("Can't load new RAPI certificate from %s: %s" % |
690 | 690 |
(rapi_cert_filename, str(err))) |
691 | 691 |
return 1 |
692 | 692 |
|
693 | 693 |
try: |
694 | 694 |
OpenSSL.crypto.load_privatekey(OpenSSL.crypto.FILETYPE_PEM, rapi_cert_pem) |
695 |
except Exception, err: # pylint: disable-msg=W0703
|
|
695 |
except Exception, err: # pylint: disable=W0703 |
|
696 | 696 |
ToStderr("Can't load new RAPI private key from %s: %s" % |
697 | 697 |
(rapi_cert_filename, str(err))) |
698 | 698 |
return 1 |
... | ... | |
703 | 703 |
if cds_filename: |
704 | 704 |
try: |
705 | 705 |
cds = utils.ReadFile(cds_filename) |
706 |
except Exception, err: # pylint: disable-msg=W0703
|
|
706 |
except Exception, err: # pylint: disable=W0703 |
|
707 | 707 |
ToStderr("Can't load new cluster domain secret from %s: %s" % |
708 | 708 |
(cds_filename, str(err))) |
709 | 709 |
return 1 |
Also available in: Unified diff