Skip to content

Commit

Permalink
fix(legacy): ensure user commissioning scripts are selected by defaul…
Browse files Browse the repository at this point in the history
…t, and noauto scripts are excluded (#1981)
  • Loading branch information
squidsoup committed Dec 8, 2020
1 parent f23264c commit e4d7b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion legacy/src/app/directives/script_select.js
Expand Up @@ -133,7 +133,7 @@ export function maasScriptSelect(ScriptsManager, ManagerHelperService) {
script.script_type === $scope.scriptType &&
script.for_hardware.length === 0
) {
if ($scope.scriptType === 0 && script.default) {
if ($scope.scriptType === 0 && !script.tags.includes("noauto")) {
// By default MAAS runs all custom
// commissioning scripts in addition to all
// builtin commissioning scripts.
Expand Down

0 comments on commit e4d7b41

Please sign in to comment.