From 512e9d682b14029c37b1c467b8b1e12057e0c9ba Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 3 Oct 2016 13:40:14 -0700 Subject: [PATCH] wait on the cloned app id --- cloudron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudron.js b/cloudron.js index 74d6120..b7fec90 100644 --- a/cloudron.js +++ b/cloudron.js @@ -242,7 +242,7 @@ Cloudron.prototype.cloneApp = function (appId, newLocation, portBindings) { common.verifyResponse2xx(res, 'App could not be clone'); console.log('App cloned to different location'.green); - var app = this.waitForApp(appId); + var app = this.waitForApp(res.body.id); res = request.get('https://' + app.fqdn).end(); common.verifyResponse2xx(res, 'App is unreachable');