Skip to content

Commit

Permalink
Fixed wrong state mapping in config:status command. (#3053)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-teck authored and weitzman committed Oct 11, 2017
1 parent 4678b09 commit 19a1c48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Drupal/Commands/config/ConfigCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ public function status($options = ['state' => 'Only in DB,Only in sync dir,Diffe
$storage = $this->getStorage($directory);
$state_map = [
'create' => 'Only in DB',
'update' => 'Only in sync dir',
'delete' => 'Different',
'update' => 'Different',
'delete' => 'Only in sync dir',
];
foreach ($this->getChanges($storage) as $collection) {
foreach ($collection as $operation => $configs) {
Expand All @@ -257,8 +257,8 @@ public function status($options = ['state' => 'Only in DB,Only in sync dir,Diffe
$rows = [];
$color_map = [
'Only in DB' => 'green',
'Only in sync dir' => 'yellow',
'Different' => 'red',
'Only in sync dir' => 'red',
'Different' => 'yellow',
'Identical' => 'white',
];

Expand Down

0 comments on commit 19a1c48

Please sign in to comment.