Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Commit

Permalink
Changed j.myidentities.me to j.me in explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedSa-mir committed May 11, 2020
1 parent b14f71c commit ee51299
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions JumpscaleLibs/clients/explorer/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def configure_free_to_use(self, node_id, free, identity=None):
if not isinstance(free, bool):
raise j.exceptions.Input("free must be a boolean")

me = identity if identity else j.myidentities.me
me = identity if identity else j.me
secret = me.encryptor.signing_key.encode(Base64Encoder)

auth = HTTPSignatureAuth(key_id=str(me.tid), secret=secret, headers=["(created)", "date", "threebot-id"])
Expand All @@ -81,7 +81,7 @@ def configure_public_config(self, node_id, master_iface, ipv4, gw4, ipv6, gw6, i
public_config.type = "MACVLAN"
public_config.version += 1

me = identity if identity else j.myidentities.me
me = identity if identity else j.me
secret = me.encryptor.signing_key.encode(Base64Encoder)

auth = HTTPSignatureAuth(key_id=str(me.tid), secret=secret, headers=["(created)", "date", "threebot-id"])
Expand Down
2 changes: 1 addition & 1 deletion JumpscaleLibs/clients/explorer/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def validate(self, tid, payload, signature):
return resp.json()["is_valid"]

def update(self, user, identity=None):
me = identity if identity else j.myidentities.me
me = identity if identity else j.me
datatosign = ""
datatosign += f"{user.id}{user.name}{user.email}"
if user.host:
Expand Down

0 comments on commit ee51299

Please sign in to comment.