Skip to content

Commit

Permalink
fix: M&R failure on schedule lookup
Browse files Browse the repository at this point in the history
Change-Id: I330211c62c702eb8d47ade84d2349904c71ef9db
  • Loading branch information
grafuls committed Feb 16, 2023
1 parent 091ae28 commit 857799d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quads/tools/move_and_rebuild_hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ async def move_and_rebuild(host, new_cloud, semaphore, rebuild=False, loop=None)
return False

await badfish.set_power_state("off")
source_cloud_schedule = Schedule.current_schedule(cloud=_host_obj.cloud.name)
source_cloud_schedule = Schedule.current_schedule(cloud=_host_obj.cloud)
if not source_cloud_schedule:
_old_cloud_obj = Cloud.objects(name=_host_obj.cloud.name).first()
_old_cloud_obj.update(vlan=None)
Expand Down

0 comments on commit 857799d

Please sign in to comment.