Skip to content

Commit

Permalink
Fix a spelling mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Keay committed Nov 13, 2024
1 parent 24a64e6 commit bbb9589
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions python/understack-workflows/understack_workflows/discover.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@

logger = setup_logger(__name__)

MIN_REQURED_NEIGHBOR_COUNT = 3
MIN_REQUIRED_NEIGHBOR_COUNT = 3


def discover_chassis_info(bmc: Bmc) -> ChassisInfo:
"""Query redfish, retrying until we get data that is acceptable.
If the server is off, power it on.
Make sure that we have at lease MIN_REQURED_NEIGHBOR_COUNT LLDP neighbors in
Make sure that we have at lease MIN_REQUIRED_NEIGHBOR_COUNT LLDP neighbors in
the returned ChassisInfo. If that can't be achieved in a reasonable time
then raise an Exception.
"""
Expand All @@ -27,11 +27,11 @@ def discover_chassis_info(bmc: Bmc) -> ChassisInfo:
bmc_power_on(bmc)

attempts_remaining = 6
while len(device_info.neighbors) < MIN_REQURED_NEIGHBOR_COUNT:
while len(device_info.neighbors) < MIN_REQUIRED_NEIGHBOR_COUNT:
logger.info(
f"{bmc} does not have enough LLDP neighbors "
f"(saw {device_info.neighbors}), need at "
f"least {MIN_REQURED_NEIGHBOR_COUNT}. "
f"least {MIN_REQUIRED_NEIGHBOR_COUNT}. "
)
if not attempts_remaining:
raise Exception("No neighbors appeared")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

logger = setup_logger(__name__)

MIN_REQURED_NEIGHBOR_COUNT = 4
MIN_REQUIRED_NEIGHBOR_COUNT = 4


def main():
Expand Down

0 comments on commit bbb9589

Please sign in to comment.