def showAlias(self, args): """ Shows the details of an alias. """ app_name, deployment_name = self.parse_app_deployment_name(args.name) if not deployment_name: deployment_name = "default" if not args.alias: aliases = self.api.read_aliases(app_name, deployment_name) print_alias_list(aliases) return True else: try: alias = self.api.read_alias(app_name, args.alias, deployment_name) except GoneError: raise InputErrorException("WrongAlias") else: print_alias_details(alias) return True
def showAlias(self, args): """ Shows the details of an alias. """ #noinspection PyTupleAssignmentBalance app_name, deployment_name = self.parse_app_deployment_name(args.name) if not deployment_name: raise InputErrorException('NoDeployment') if not args.alias: aliases = self.api.read_aliases(app_name, deployment_name) print_alias_list(aliases) return True else: try: alias = self.api.read_alias( app_name, args.alias, deployment_name) except GoneError: raise InputErrorException('WrongAlias') else: print_alias_details(alias) return True