def checkOptions(self): AuthnCommand.checkCloudEndpointOptionsOnly(self) if not self.vmIds and not self.options.inVmIdsFile: self.parser.error('Missing vm-id or input file (-i/--input)') super(InstanceCommand, self).checkOptions()
def checkOptions(self): if not self.vmIds: self.parser.error('Missing vm-id') AuthnCommand.checkCloudEndpointOptionsOnly(self) PortTranslationCommand.checkCommonOptions(self) self._checkPrivateKeyFile() super(MainProgram, self).checkOptions()
def checkOptions(self): if self.options.listType: return self._check_args() self.image = self.args[0] AuthnCommand.checkCloudEndpointOptionsOnly(self) if self.options.extraContextFile and not os.path.isfile(self.options.extraContextFile): self.parser.error('Extra context file does not exist') if self.options.vncListen and not Util.validateIp(self.options.vncListen): self.parser.error('VNC listen IP is not valid') MarketplaceUtil.checkEndpointOption(self.options) super(Runnable, self).checkOptions()
def checkOptions(self): AuthnCommand.checkCloudEndpointOptionsOnly(self) PortTranslationCommand.checkCommonOptions(self) super(MainProgram, self).checkOptions()