Skip to content

Commit

Permalink
fix: do not enforce Harbor password when developing
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioHeredia committed Dec 2, 2024
1 parent b2d617a commit 8060576
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions ai4papi/routers/v1/snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@
security = HTTPBearer()

# Init the Harbor client
client = HarborClient(
url="https://registry.services.ai4os.eu/api/v2.0/",
username=papiconf.HARBOR_USER,
secret=papiconf.HARBOR_PASS,
)
if papiconf.HARBOR_USER and papiconf.HARBOR_PASS:
client = HarborClient(
url="https://registry.services.ai4os.eu/api/v2.0/",
username=papiconf.HARBOR_USER,
secret=papiconf.HARBOR_PASS,
)
else:
client = None

# Use the Nomad cluster inited in nomad.common
Nomad = nomad_common.Nomad
Expand Down

0 comments on commit 8060576

Please sign in to comment.