Fix: Client router failed as not all fields were populated and the right config for missing

This commit is contained in:
Amritanshu Agrawal 2022-01-06 16:16:13 +05:30
parent f9436da74b
commit a4c98444aa
2 changed files with 9 additions and 6 deletions

View File

@ -19,6 +19,10 @@ class Client(ClientIn):
code: int code: int
creation_date: datetime creation_date: datetime
class Config:
anystr_strip_whitespace = True
alias_generator = to_camel
class ClientList(Client): class ClientList(Client):
last_user: str last_user: str

View File

@ -3,8 +3,7 @@ set -e
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" || exit ; pwd -P ) parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" || exit ; pwd -P )
cd "$parent_path" || exit cd "$parent_path" || exit
#./lint.sh
./lint.sh
if [ 1 -eq "$#" ] if [ 1 -eq "$#" ]
then then
@ -28,7 +27,7 @@ cd "$parent_path/docker/app" || exit
docker build --tag brewman:latest . docker build --tag brewman:latest .
cd "$parent_path/docker" || exit cd "$parent_path/docker" || exit
docker save brewman:latest | bzip2 | pv | ssh tanshu@knox.tanshu.com 'bunzip2 | sudo docker load' docker save brewman:latest | bzip2 | pv | ssh tanshu@knox.tanshu.com 'bunzip2 | sudo docker load'
ansible-playbook --limit knox playbook-exp.yml ansible-playbook --limit vancity playbook-exp.yml
ansible-playbook --limit knox playbook-hops.yml ansible-playbook --limit vancity playbook-hops.yml
ansible-playbook --limit knox playbook-acc.yml ansible-playbook --limit vancity playbook-acc.yml
ansible-playbook --limit knox playbook-mhl.yml ansible-playbook --limit vancity playbook-mhl.yml