Skip to content

Commit

Permalink
use real local vdc key for single deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
wichert, travis committed Sep 18, 2015
1 parent b1750fd commit 3a15186
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ecs-single-node/step2_object_provisioning.py
Original file line number Diff line number Diff line change
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 3a15186

Please sign in to comment.