Mentions légales du service

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

Merge branch 'get_user_name' into 'master'

get api username

See merge request discovery/enoslib!20
parents 79ed2e3b afbeef3e
No related branches found
No related tags found
No related merge requests found
...@@ -464,6 +464,16 @@ def set_nodes_vlan(site, nodes, interface, vlan_id): ...@@ -464,6 +464,16 @@ def set_nodes_vlan(site, nodes, interface, vlan_id):
gk.sites[site].vlans[str(vlan_id)].submit({"nodes": network_addresses}) gk.sites[site].vlans[str(vlan_id)].submit({"nodes": network_addresses})
def get_api_username():
"""Return username of client
Returns:
client's username
"""
gk = get_api_client()
return gk.username
@ring.disk(storage) @ring.disk(storage)
def get_all_sites_obj(): def get_all_sites_obj():
"""Return the list of the sites. """Return the list of the sites.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment