mirror of https://github.com/rancher/ui.git
lint
This commit is contained in:
parent
97992bbc36
commit
72153bda97
|
|
@ -5,9 +5,7 @@ import {
|
|||
} from '@ember/object';
|
||||
import { maxSatisfying } from 'shared/utils/parse-version';
|
||||
import { inject as service } from '@ember/service';
|
||||
import {
|
||||
underlineToCamel, removeEmpty, keysToCamel, validateEndpoint, keysToDecamelize
|
||||
} from 'shared/utils/util';
|
||||
import { removeEmpty, keysToCamel, validateEndpoint, keysToDecamelize } from 'shared/utils/util';
|
||||
import { validateHostname } from '@rancher/ember-api-store/utils/validate';
|
||||
import { validateCertWeakly } from 'shared/utils/util';
|
||||
import C from 'shared/utils/constants';
|
||||
|
|
@ -23,8 +21,6 @@ import ManageLabels from 'shared/mixins/manage-labels';
|
|||
import { typeOf } from '@ember/utils';
|
||||
import Semver, { major, minor } from 'semver';
|
||||
import { on } from '@ember/object/evented';
|
||||
import { decamelize } from '@ember/string';
|
||||
import flatMap from 'shared/utils/flat-map';
|
||||
|
||||
const EXCLUDED_KEYS = ['extra_args'];
|
||||
|
||||
|
|
@ -665,7 +661,6 @@ export default InputTextFile.extend(ManageLabels, ClusterDriver, {
|
|||
|
||||
|
||||
if ( cpConfig ) {
|
||||
|
||||
cpConfig = removeEmpty(cpConfig, EXCLUDED_KEYS);
|
||||
|
||||
if (cpConfig.azureCloudProvider) {
|
||||
|
|
@ -721,7 +716,6 @@ export default InputTextFile.extend(ManageLabels, ClusterDriver, {
|
|||
}),
|
||||
|
||||
getClusterFields(primaryResource) {
|
||||
const { intl } = this;
|
||||
let pojoPr = JSON.parse(JSON.stringify(removeEmpty(primaryResource, EXCLUDED_KEYS)));
|
||||
let decamelizedObj = {};
|
||||
|
||||
|
|
@ -731,7 +725,7 @@ export default InputTextFile.extend(ManageLabels, ClusterDriver, {
|
|||
},
|
||||
|
||||
getOptsFromYaml() {
|
||||
let { configBeforeYaml, yamlValue } = this;
|
||||
let { yamlValue } = this;
|
||||
let yamlConfig;
|
||||
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import Component from '@ember/component';
|
|||
import layout from './template';
|
||||
import ViewNewEdit from 'shared/mixins/view-new-edit';
|
||||
import ChildHook from 'shared/mixins/child-hook';
|
||||
import { get, set, setProperties } from '@ember/object';
|
||||
import { get, set } from '@ember/object';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { alias } from '@ember/object/computed';
|
||||
import Errors from 'ui/utils/errors';
|
||||
|
|
|
|||
Loading…
Reference in New Issue