Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions floating_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def findServer(self):
time.sleep( self.rateLimitWait )
except EnvironmentError:
# Host not found in api
if self.failOnHostfindFailure.get() is 'true':
if self.failOnHostfindFailure.get() == 'true':
raise AbortWithError(ocf.ReturnCodes.isMissconfigured, 'Failed to find server')
time.sleep( self.wait )

Expand All @@ -143,7 +143,7 @@ def findIp(self):
time.sleep( self.rateLimitWait )
except EnvironmentError:
# Ip not found in api
if self.failOnHostfindFailure.get() is 'true':
if self.failOnHostfindFailure.get() == 'true':
raise AbortWithError(ocf.ReturnCodes.isMissconfigured, 'Failed to find ip')
time.sleep( self.wait )

Expand Down