Skip to content

Commit

Permalink
type to str before saving ip
Browse files Browse the repository at this point in the history
  • Loading branch information
kthare10 committed Jul 16, 2024
1 parent 9186ec9 commit 65690d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions fabric_cf/actor/core/plugins/db/actor_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def add_reservation(self, *, reservation: ABCReservationMixin):
if sliver.get_label_allocations() and sliver.get_label_allocations().instance_parent:
host = sliver.get_label_allocations().instance_parent
if sliver.get_management_ip():
ip_subnet = sliver.get_management_ip()
ip_subnet = str(sliver.get_management_ip())

node_id = reservation.get_graph_node_id()
if node_id:
Expand Down Expand Up @@ -397,7 +397,8 @@ def update_reservation(self, *, reservation: ABCReservationMixin):
host = sliver.get_labels().instance_parent
if sliver.get_label_allocations() and sliver.get_label_allocations().instance_parent:
host = sliver.get_label_allocations().instance_parent
ip_subnet = sliver.get_management_ip()
if sliver.get_management_ip():
ip_subnet = str(sliver.get_management_ip())
node_id = reservation.get_graph_node_id()
if node_id:
components = []
Expand Down
2 changes: 1 addition & 1 deletion fabric_cf/orchestrator/core/orchestrator_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ def poa(self, *, token: str, sliver_id: str, poa: PoaAvro) -> Tuple[str, str]:

rid = ID(uid=sliver_id) if sliver_id is not None else None

fabric_token = self.__authorize_request(id_token=token, action_id=ActionId.modify)
fabric_token = self.__authorize_request(id_token=token, action_id=ActionId.POA)
user_id = fabric_token.uuid
project, tags, project_name = fabric_token.first_project

Expand Down

0 comments on commit 65690d6

Please sign in to comment.