Blame SOURCES/bz1732766-fence_aliyun-2-import-EcsRamRoleCredential.patch

21d5fd
From b5f1bd2a257ce868b6845d77abdfc741c19d4d3e Mon Sep 17 00:00:00 2001
21d5fd
From: chen dong <51401223+dongchen126@users.noreply.github.com>
21d5fd
Date: Thu, 11 Jul 2019 15:30:10 +0800
21d5fd
Subject: [PATCH] Update fence_aliyun.xml
21d5fd
MIME-Version: 1.0
21d5fd
Content-Type: text/plain; charset=UTF-8
21d5fd
Content-Transfer-Encoding: 8bit
21d5fd
21d5fd
Add ram role for security
21d5fd
Add region provider for private zone functionality
21d5fd
21d5fd
Update fence_aliyun.py
21d5fd
21d5fd
delet paramater “m”
21d5fd
21d5fd
Update fence_aliyun.xml
21d5fd
21d5fd
delete "m" parameter
21d5fd
21d5fd
Update fence_aliyun.py
21d5fd
21d5fd
add  "EcsRamRoleCredential" class from aliyun SDK
21d5fd
---
21d5fd
 agents/aliyun/fence_aliyun.py | 2 +-
21d5fd
 1 file changed, 1 insertion(+), 1 deletion(-)
21d5fd
21d5fd
diff --git a/agents/aliyun/fence_aliyun.py b/agents/aliyun/fence_aliyun.py
21d5fd
index 3bc825fe..aa0b741d 100644
21d5fd
--- a/agents/aliyun/fence_aliyun.py
21d5fd
+++ b/agents/aliyun/fence_aliyun.py
21d5fd
@@ -10,7 +10,7 @@
21d5fd
 
21d5fd
 try:
21d5fd
 	from aliyunsdkcore import client
21d5fd
-
21d5fd
+	from aliyunsdkcore.auth.credentials import EcsRamRoleCredential
21d5fd
 	from aliyunsdkecs.request.v20140526.DescribeInstancesRequest import DescribeInstancesRequest
21d5fd
 	from aliyunsdkecs.request.v20140526.StartInstanceRequest import StartInstanceRequest
21d5fd
 	from aliyunsdkecs.request.v20140526.StopInstanceRequest import StopInstanceRequest