mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-22 06:57:48 +00:00
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:
commit
52c7a098cc
@ -285,7 +285,6 @@ exports.generate =
|
|||||||
writeFileAsync = Promise.promisify(require('fs').writeFile)
|
writeFileAsync = Promise.promisify(require('fs').writeFile)
|
||||||
balena = require('balena-sdk').fromSharedOptions()
|
balena = require('balena-sdk').fromSharedOptions()
|
||||||
form = require('resin-cli-form')
|
form = require('resin-cli-form')
|
||||||
deviceConfig = require('resin-device-config')
|
|
||||||
prettyjson = require('prettyjson')
|
prettyjson = require('prettyjson')
|
||||||
|
|
||||||
{ generateDeviceConfig, generateApplicationConfig } = require('../utils/config')
|
{ generateDeviceConfig, generateApplicationConfig } = require('../utils/config')
|
||||||
@ -319,7 +318,6 @@ exports.generate =
|
|||||||
else
|
else
|
||||||
generateApplicationConfig(resource, answers)
|
generateApplicationConfig(resource, answers)
|
||||||
.then (config) ->
|
.then (config) ->
|
||||||
deviceConfig.validate(config)
|
|
||||||
if options.output?
|
if options.output?
|
||||||
return writeFileAsync(options.output, JSON.stringify(config))
|
return writeFileAsync(options.output, JSON.stringify(config))
|
||||||
|
|
||||||
|
@ -32,8 +32,6 @@ type ImgConfig = {
|
|||||||
vpnEndpoint: string;
|
vpnEndpoint: string;
|
||||||
registryEndpoint: string;
|
registryEndpoint: string;
|
||||||
deltaEndpoint: string;
|
deltaEndpoint: string;
|
||||||
pubnubSubscribeKey: string;
|
|
||||||
pubnubPublishKey: string;
|
|
||||||
mixpanelToken: string;
|
mixpanelToken: string;
|
||||||
wifiSsid?: string;
|
wifiSsid?: string;
|
||||||
wifiKey?: string;
|
wifiKey?: string;
|
||||||
|
@ -155,7 +155,6 @@
|
|||||||
"resin-cli-form": "^2.0.0",
|
"resin-cli-form": "^2.0.0",
|
||||||
"resin-cli-visuals": "^1.4.0",
|
"resin-cli-visuals": "^1.4.0",
|
||||||
"resin-compose-parse": "^2.0.0",
|
"resin-compose-parse": "^2.0.0",
|
||||||
"resin-device-config": "^5.0.0",
|
|
||||||
"resin-device-init": "^4.0.0",
|
"resin-device-init": "^4.0.0",
|
||||||
"resin-doodles": "0.0.1",
|
"resin-doodles": "0.0.1",
|
||||||
"resin-image-fs": "^5.0.2",
|
"resin-image-fs": "^5.0.2",
|
||||||
|
1
typings/resin-device-config.d.ts
vendored
1
typings/resin-device-config.d.ts
vendored
@ -1 +0,0 @@
|
|||||||
declare module 'resin-device-config';
|
|
Loading…
Reference in New Issue
Block a user