From 80758ffbdb0929fc65dc8f7083d11c382ccc41b2 Mon Sep 17 00:00:00 2001 From: Sean Li Date: Thu, 9 Oct 2014 13:36:16 -0700 Subject: [PATCH] Ignores the kite-dns app and image during syncing. --- meteor/client/lib/apputil.js | 2 +- meteor/client/lib/imageutil.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meteor/client/lib/apputil.js b/meteor/client/lib/apputil.js index f5c4900490..5ae1610f14 100644 --- a/meteor/client/lib/apputil.js +++ b/meteor/client/lib/apputil.js @@ -218,7 +218,7 @@ AppUtil.sync = function () { var startingApp = _.find(apps, function (app) { return app.status === 'STARTING' && app.name === appName; }); - if (!startingApp) { + if (!startingApp && appName !== 'kite-dns') { var appPath = path.join(Util.KITE_PATH, appName); if (!fs.existsSync(appPath)) { console.log('Created Kite ' + appName + ' directory.'); diff --git a/meteor/client/lib/imageutil.js b/meteor/client/lib/imageutil.js index e88a2486bc..597b55b30a 100644 --- a/meteor/client/lib/imageutil.js +++ b/meteor/client/lib/imageutil.js @@ -333,7 +333,7 @@ ImageUtil.sync = function () { var buildingImage = _.find(images, function (image) { return image.status === 'BUILDING' && image.meta.name === name && image.meta.version === version; }); - if (!buildingImage && name !== '' && version !== '') { + if (!buildingImage && name !== '' && version !== '' && name !== 'kite-dns') { var imageObj = { status: 'READY', docker: image,