Skip to content

Commit 7b0f5c5

Browse files
authored
Merge pull request #376 from morenstrat/patch-1
Updated argument name in Drush policy file
2 parents 9167252 + 9e90e4f commit 7b0f5c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: drush/Commands/PolicyCommands.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class PolicyCommands extends DrushCommands {
1919
* @throws \Exception
2020
*/
2121
public function sqlSyncValidate(CommandData $commandData) {
22-
if ($commandData->input()->getArgument('destination') == '@prod') {
22+
if ($commandData->input()->getArgument('target') == '@prod') {
2323
throw new \Exception(dt('Per !file, you may never overwrite the production database.', ['!file' => __FILE__]));
2424
}
2525
}
@@ -32,7 +32,7 @@ public function sqlSyncValidate(CommandData $commandData) {
3232
* @throws \Exception
3333
*/
3434
public function rsyncValidate(CommandData $commandData) {
35-
if (preg_match("/^@prod/", $commandData->input()->getArgument('destination'))) {
35+
if (preg_match("/^@prod/", $commandData->input()->getArgument('target'))) {
3636
throw new \Exception(dt('Per !file, you may never rsync to the production site.', ['!file' => __FILE__]));
3737
}
3838
}

0 commit comments

Comments
 (0)