Ignores the kite-dns app and image during syncing.

This commit is contained in:
Sean Li 2014-10-09 13:36:16 -07:00
parent 0071a7fcf5
commit 80758ffbdb
2 changed files with 2 additions and 2 deletions

View File

@ -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.');

View File

@ -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 !== '<none>' && version !== '<none>') {
if (!buildingImage && name !== '<none>' && version !== '<none>' && name !== 'kite-dns') {
var imageObj = {
status: 'READY',
docker: image,