forked from os-autoinst/os-autoinst-distri-opensuse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid die in check_takeover for uninitialized variables
Avoid an exception if get_hana_topology return an empty result. It could happens if SAPHanaSR-showAttr is not succesful and output is not parsable. This new behavior is obtained avoiding the usage of local variables in check_takeover. Sleep 30 moved in a different position only to be used once for each get_hana_topology and not to be called when there's no more retry to run. Add some unit testing for these two functions.
Showing
2 changed files
with
221 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters