fix: validate app name in app-scoped commands
This commit is contained in:
22 files changed
+213
-35
No files matched your search
@@ -121,6 +121,9 @@ func CommandRetire(appName string) error {
|
||||
if appName == "" {
|
||||
scheduler = common.GetGlobalScheduler()
|
||||
} else {
|
||||
if err := common.VerifyAppName(appName); err != nil {
|
||||
return err
|
||||
}
|
||||
scheduler = common.GetAppScheduler(appName)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user