Skip to content

Commit

Permalink
Merge branch '437-update-naassecret-with-new-method'
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr0p42 committed Mar 18, 2024
2 parents c999c22 + 0072bee commit a8855c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ run:
sh:
docker-compose exec naas /bin/bash

prod-build:
docker build . -t naas:latest

build:
docker-compose down
docker-compose build
Expand Down
4 changes: 4 additions & 0 deletions naas/secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def __get_remote_secret(self, name: str):
except naas_python.domains.secret.SecretSchema.SecretNotFound:
print("Secret not found.")
return None
#noqa: E722
except:
print("Secret get failed. Please retry again in few seconds.")
return None
Expand All @@ -34,6 +35,7 @@ def __create_remote_secret(self, name: str, value: str):
"Naas.api service request failed. Please retry again in few seconds."
)
return False
#noqa: E722
except:
print("Secret creation failed. Please retry again in few seconds.")
return False
Expand All @@ -49,6 +51,7 @@ def __create_remote_bulk_secret(self, secrets: str):
"Naas.api service request failed. Please retry again in few seconds."
)
return False
#noqa: E722
except:
print("Secret creation failed. Please retry again in few seconds.")
return False
Expand All @@ -63,6 +66,7 @@ def __delete_remote_secret(self, name: str):
"Naas.api service request failed. Please retry again in few seconds."
)
return False
#noqa: E722
except:
# print("Secret not found")
return False
Expand Down

0 comments on commit a8855c9

Please sign in to comment.