Merge pull request #1014 from balena-io/disable-broken-config-validation

Stop validating device config, now that it's API-generated
This commit is contained in:
Tim Perry 2018-11-06 13:06:17 +01:00 committed by GitHub
commit 52c7a098cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 6 deletions

View File

@ -285,7 +285,6 @@ exports.generate =
writeFileAsync = Promise.promisify(require('fs').writeFile)
balena = require('balena-sdk').fromSharedOptions()
form = require('resin-cli-form')
deviceConfig = require('resin-device-config')
prettyjson = require('prettyjson')
{ generateDeviceConfig, generateApplicationConfig } = require('../utils/config')
@ -319,7 +318,6 @@ exports.generate =
else
generateApplicationConfig(resource, answers)
.then (config) ->
deviceConfig.validate(config)
if options.output?
return writeFileAsync(options.output, JSON.stringify(config))

View File

@ -32,8 +32,6 @@ type ImgConfig = {
vpnEndpoint: string;
registryEndpoint: string;
deltaEndpoint: string;
pubnubSubscribeKey: string;
pubnubPublishKey: string;
mixpanelToken: string;
wifiSsid?: string;
wifiKey?: string;

View File

@ -155,7 +155,6 @@
"resin-cli-form": "^2.0.0",
"resin-cli-visuals": "^1.4.0",
"resin-compose-parse": "^2.0.0",
"resin-device-config": "^5.0.0",
"resin-device-init": "^4.0.0",
"resin-doodles": "0.0.1",
"resin-image-fs": "^5.0.2",

View File

@ -1 +0,0 @@
declare module 'resin-device-config';