mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 06:31:23 -07:00
Fix connection error reporting (#40758)
The variables used for reporting errors were incorrect. Additionally, the fetching of connection related params was using an old format.
This commit is contained in:
parent
547a1ed67d
commit
dc08bca1fd
2 changed files with 16 additions and 16 deletions
|
@ -37,7 +37,7 @@ class F5Client(F5BaseClient):
|
|||
if self._client:
|
||||
return self._client
|
||||
|
||||
for x in range(0, 60):
|
||||
for x in range(0, 10):
|
||||
try:
|
||||
result = ManagementRoot(
|
||||
self.provider['server'],
|
||||
|
@ -53,7 +53,7 @@ class F5Client(F5BaseClient):
|
|||
exc = ex
|
||||
time.sleep(1)
|
||||
error = 'Unable to connect to {0} on port {1}.'.format(
|
||||
self.params['server'], self.params['server_port']
|
||||
self.provider['server'], self.provider['server_port']
|
||||
)
|
||||
|
||||
if exc is not None:
|
||||
|
@ -71,7 +71,6 @@ class F5RestClient(F5BaseClient):
|
|||
exc = None
|
||||
if self._client:
|
||||
return self._client
|
||||
|
||||
for x in range(0, 10):
|
||||
try:
|
||||
url = "https://{0}:{1}/mgmt/shared/authn/login".format(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue