Commit 0be653ea authored by anarcat's avatar anarcat Committed by anarcat

create DNS records properly on site installs

the problem was that server context wasn't assigned to the site during
the install hook that was ran, so I added a check to hardcode it if it's
not found.
parent 86eeda7f
......@@ -137,6 +137,10 @@ class provisionService_dns_bind extends provisionService_dns {
public function &zone_singleton($zonename) {
if (!$this->zone_cache[$zonename]) {
if ($this->context->type == 'site') {
$this->context = '@server_master';
drush_log("overriding server context");
$this->zone_cache[$zonename] = new provisionConfig_bind_zone($this->context, array('name' => $zonename));
return $this->zone_cache[$zonename];
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