Unverified Commit 4b53c492 authored by Andrew's avatar Andrew Committed by GitHub
Browse files

NAS-112575 / 12.0 / Refuse to generate avahi config on passive controller (#7711)

No related merge requests found
Showing with 3 additions and 0 deletions
+3 -0
......@@ -19,6 +19,9 @@
ipv6_enabled = any(middleware.call_sync('interface.ip_in_use', {'ipv4': False, 'ipv6': True}))
failover_int = middleware.call_sync("failover.internal_interfaces")
failover_status = middleware.call_sync('failover.status')
if failover_status not in ['SINGLE', 'MASTER']:
raise FileShouldNotExist()
%>
[server]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment