[ClusterLabs] [ClusterLabs Developers] fence-agents v4.3.0

Valentin Vidic Valentin.Vidic at CARNet.hr
Tue Oct 9 05:11:17 EDT 2018


On Tue, Oct 09, 2018 at 10:55:08AM +0200, Oyvind Albrigtsen wrote:
> It seems like the if-line should be updated to check for those 2
> libraries (from the imports in the agent).

Yes, that might work too.

Also would it be possible to make the imports in openstack agent
conditional so the metadata works even when the python modules
are not installed?

Something like this in aliyun:

try:
        from aliyunsdkcore import client

        from aliyunsdkecs.request.v20140526.DescribeInstancesRequest import DescribeInstancesRequest
        from aliyunsdkecs.request.v20140526.StartInstanceRequest import StartInstanceRequest
        from aliyunsdkecs.request.v20140526.StopInstanceRequest import StopInstanceRequest
        from aliyunsdkecs.request.v20140526.RebootInstanceRequest import RebootInstanceRequest
except ImportError:
        pass

-- 
Valentin



More information about the Users mailing list