Skip to content

Commit d9706f1

Browse files
author
Silvano Buback
committed
validation to allow only lower case characters in VM name
1 parent 2d7a7ed commit d9706f1

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

ui/scripts/sharedFunctions.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,16 @@ cloudStack.validate = {
826826
cloudStack.dialog.notice({
827827
message: 'message.validate.instance.name'
828828
});
829+
830+
// Only lower case letters for GloboDNS (DNSAPI)
831+
// FIXME Convert this code to use only regexp set as global option.
832+
if (args.toLowerCase() !== args) {
833+
cloudStack.dialog.notice({
834+
message: 'Only lower case letters!'
835+
});
836+
return false;
837+
}
838+
829839
return b;
830840
}
831841
}

0 commit comments

Comments
 (0)