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

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