Skip to content

Commit

Permalink
Updated the hsm urls to use the v2 api (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
shunr-hpe authored Aug 8, 2024
1 parent 5555a96 commit b6c9cc8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions verify_hsm_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# MIT License
#
# (C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP
# (C) Copyright 2021-2023 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -115,8 +115,8 @@ def doRest(uri, authToken):
# Get HSM component data

def getHSMComponents(authToken):
# url = "https://api-gw-service-nmn.local/apis/smd/hsm/v1/State/Components"
url = "http://localhost:27779/hsm/v1/State/Components"
# url = "https://api-gw-service-nmn.local/apis/smd/hsm/v2/State/Components"
url = "http://localhost:27779/hsm/v2/State/Components"
compsJSON, rstat = doRest(url, authToken)
return compsJSON, rstat

Expand All @@ -125,8 +125,8 @@ def getHSMComponents(authToken):
# Get HSM RFEP data

def getHSMRFEP(authToken):
# url = "https://api-gw-service-nmn.local/apis/smd/hsm/v1/Inventory/RedfishEndpoints"
url = "http://localhost:27779/hsm/v1/Inventory/RedfishEndpoints"
# url = "https://api-gw-service-nmn.local/apis/smd/hsm/v2/Inventory/RedfishEndpoints"
url = "http://localhost:27779/hsm/v2/Inventory/RedfishEndpoints"
rfepJSON, rstat = doRest(url, authToken)
return rfepJSON, rstat

Expand Down Expand Up @@ -647,4 +647,4 @@ def main():

if __name__ == "__main__":
ret = main()
exit(ret)
exit(ret)

0 comments on commit b6c9cc8

Please sign in to comment.