Skip to content

Commit

Permalink
chore(deps): replace metal-python with equinix-sdk-python (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Sep 6, 2024
1 parent aa5e03e commit 170b7fd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/module_utils/metal/api_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

try:
import equinix_metal
import equinix.services.metalv1 as equinix_metal
except ImportError:
# This is handled in raise_if_missing_equinix_metal()
pass
Expand Down
4 changes: 2 additions & 2 deletions plugins/module_utils/metal/metal_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
HAS_EQUINIX_METAL = True
HAS_EQUINIX_METAL_EXC = None
try:
import equinix_metal
from equinix_metal.exceptions import NotFoundException
import equinix.services.metalv1 as equinix_metal
from equinix.services.metalv1.exceptions import NotFoundException
except ImportError:
HAS_EQUINIX_METAL = False
HAS_EQUINIX_METAL_EXC = traceback.format_exc()
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/metal_virtual_circuit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
from equinix_metal.exceptions import NotFoundException
from equinix.services.metalv1.exceptions import NotFoundException

# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
equinix-metal==0.11.0
equinix==0.4.0
ansible-specdoc>=0.0.13
pydantic >= 2
requests

0 comments on commit 170b7fd

Please sign in to comment.