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

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