Skip to content

Commit b7ab1bc

Browse files
committed
mgr/cephadm: initialize results list in deploy_and_remove_all
If we don't actually deploy anything it ends up referencing an unassigned variable Signed-off-by: Adam King <[email protected]> Resolves: rhbz#2374651
1 parent 7a698d1 commit b7ab1bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pybind/mgr/cephadm/serve.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ async def _deploy_and_remove_all(
737737
+ [d.name() for d in all_conflicting_daemons]
738738
+ [d.name() for d in all_daemons_to_remove]
739739
)
740+
results: List[Tuple[bool, Set[str], List[str]]] = []
740741
for tier in sorted(all_daemons_to_deploy.keys()):
741742
all_daemons_in_tier_to_deploy = all_daemons_to_deploy[tier]
742743
deploy_names = [d.name() for d in all_daemons_in_tier_to_deploy]

0 commit comments

Comments
 (0)