Commit 95272c99 authored by anarcat's avatar anarcat Committed by anarcat

handle wrong arguments to provision-zone

parent 8e2c94dc
...@@ -54,6 +54,9 @@ function drush_dns_provision_zone($action, $zone, $name = null, $type = null, $d ...@@ -54,6 +54,9 @@ function drush_dns_provision_zone($action, $zone, $name = null, $type = null, $d
d()->service('dns')->config('zone', $zone)->record_set($name, NULL)->write(); d()->service('dns')->config('zone', $zone)->record_set($name, NULL)->write();
} }
break; break;
default:
$status = drush_set_error('DRUSH_WRONG_ARGUMENT', dt("wrong argument provided to provision-zone"));
break;
} }
$status = $status && d()->service('dns')->commit($zone); $status = $status && d()->service('dns')->commit($zone);
......
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