File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 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 {
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 }
You can’t perform that action at this time.
0 commit comments