libcloud_dns: pylint fix

This commit is contained in:
Ronald van Zantvoort 2017-12-18 14:32:04 +01:00 committed by GitHub
parent c994423286
commit 276e8828ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ def zone_present(domain, type, profile):
type = 'master'
matching_zone = [z for z in zones if z.domain == domain]
if len(matching_zone) > 0:
return state_result(True, "Zone already exists")
return state_result(domain, True, 'Zone already exists')
else:
result = __salt__['libcloud_dns.create_zone'](domain, profile, type)
return state_result(domain, result, 'Created new zone')