Skip to content

Commit

Permalink
Merge pull request #35 from padthaitofuhot/develop
Browse files Browse the repository at this point in the history
use real local vdc key for single deployments
  • Loading branch information
padthaitofuhot committed Sep 18, 2015
2 parents b1750fd + 3a15186 commit 2d6968d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ecs-single-node/step2_object_provisioning.py
Expand Up @@ -81,10 +81,9 @@ def DeleteUser(ECSNode,userName,Namespace):
executeRestAPI("/object/users/deactivate", 'POST','.id', DeleteUserPayload, ECSNode)


def getVDCSecretKey(self):
Log.info(LoggingInfra.logger, "Fetch VDC secret key")
secretKeyDict = self.executeRestAPI("/vdc/secret-key", 'GET', '.secret_key', "")
return secretKeyDict['secret_key']
def getVDCSecretKey(ECSNode):
secretKeyDict = executeRestAPI("/object/vdcs/vdc/local/secretkey", 'GET', '.secret_key', "", ECSNode, checkOutput=1)
return secretKeyDict['key']


def UploadLicense(ECSNode):
Expand Down Expand Up @@ -136,8 +135,8 @@ def InsertVDC(ECSNode, VDCName):
else:
break

secretKey="secret12345"
#secretKey=getVDCSecretKey()
#secretKey="secret12345"
secretKey=getVDCSecretKey(ECSNode)
InsertVDCPayload ='{\\"vdcName\\":\\"%s\\",\
\\"interVdcEndPoints\\":\\"%s\\", \
\\"secretKeys\\":\\"%s\\"\
Expand Down

0 comments on commit 2d6968d

Please sign in to comment.