Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 42af6761 authored by SIMONIN Matthieu's avatar SIMONIN Matthieu
Browse files

cli: better Extract method

parent 9d4ae712
No related branches found
No related tags found
No related merge requests found
Pipeline #448133 passed
# 1.1.2
- Extract a API method to authenticate from python
# 1.1.1
- Introduce `grid5000-auth` to facilitate the creation of credential file
......
__version__ = "1.1.1"
__version__ = "1.1.2"
......@@ -48,6 +48,7 @@ def auth(user: str):
password = getpass("Grid'5000 password: ")
path.write_text("\n".join([f"username: {user}", f"password: {password}"]))
print(f"{CONF_PATH} created successfully")
path.chmod(0o600)
def cli_auth():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment