mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-26 06:39:27 +08:00
Added exception for null kubectl commands
This commit is contained in:
@@ -80,6 +80,8 @@ export class Kubectl {
|
||||
}
|
||||
|
||||
public executeCommand(customCommand: string, args?: string) {
|
||||
if(!customCommand)
|
||||
throw new Error('NullCommandForKubectl');
|
||||
return args ? this.execute([customCommand, args]) : this.execute([customCommand]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user