mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
libcloud_dns: pylint fix
This commit is contained in:
parent
c994423286
commit
276e8828ae
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue