File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class PolicyCommands extends DrushCommands {
19
19
* @throws \Exception
20
20
*/
21
21
public function sqlSyncValidate (CommandData $ commandData ) {
22
- if ($ commandData ->input ()->getArgument ('destination ' ) == '@prod ' ) {
22
+ if ($ commandData ->input ()->getArgument ('target ' ) == '@prod ' ) {
23
23
throw new \Exception (dt ('Per !file, you may never overwrite the production database. ' , ['!file ' => __FILE__ ]));
24
24
}
25
25
}
@@ -32,7 +32,7 @@ public function sqlSyncValidate(CommandData $commandData) {
32
32
* @throws \Exception
33
33
*/
34
34
public function rsyncValidate (CommandData $ commandData ) {
35
- if (preg_match ("/^@prod/ " , $ commandData ->input ()->getArgument ('destination ' ))) {
35
+ if (preg_match ("/^@prod/ " , $ commandData ->input ()->getArgument ('target ' ))) {
36
36
throw new \Exception (dt ('Per !file, you may never rsync to the production site. ' , ['!file ' => __FILE__ ]));
37
37
}
38
38
}
You can’t perform that action at this time.
0 commit comments