Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e90e4f

Browse files
author
Markus Orenstrat
authored
Updated argument name
1 parent 6be94f4 commit 9e90e4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drush/Commands/PolicyCommands.php

Lines changed: 2 additions & 2 deletions
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)