Advertisement
Guest User

Untitled

a guest
Jun 7th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. [Errno 13] Permission denied: '/etc/bind/zones/nsk.guts'
  2. START OF TRACEBACK
  3. ------------------------------------------------------------------------
  4. File: /opt/noc/main/sync/channels/dns/zone/bind/file.py (Line: 177)
  5. Function: on_verify
  6. 170 serial = int(data["serial"])
  7. 171 mf = self.get_manifest()
  8. 172 if mf.get(object) == serial:
  9. 173 return # Actual
  10. 174 zf = ZoneFile(object, data["records"]).get_text()
  11. 175 path = self.get_zone_path(object)
  12. 176 self.info("Updating %s (%d)" % (object, serial))
  13. 177 ==> with open(path, "w") as f:
  14. 178 f.write(zf)
  15. 179 self.update_manifest(mf, object, serial)
  16. 180
  17. 181 def reload(self):
  18. 182 """
  19. 183 Reload named config
  20. Variables:
  21. mf = {'nsk.guts': 2013060700}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement