Skip to content

Commit

Permalink
Make default_selector a fallback rather than an override (#3950) (#4009
Browse files Browse the repository at this point in the history
…) (#4010)

* Make default_selector a fallback rather than an override (#3950) (#4009)

* Set default for default_selector (#4011)
  • Loading branch information
florinr08 authored Jan 31, 2025
1 parent 155980e commit 282e4dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Command/SelectCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ protected function selectHosts(Input $input, Output $output): array
if (!$output->isDecorated() && !defined('NO_ANSI')) {
define('NO_ANSI', 'true');
}
$selector = Deployer::get()->config->get('default_selector', $input->getArgument('selector'));
$selector = $input->getArgument('selector');
$selector = empty($selector) ? Deployer::get()->config->get('default_selector', '') : $selector;
$selectExpression = is_array($selector) ? implode(',', $selector) : $selector;

if (empty($selectExpression)) {
Expand Down

0 comments on commit 282e4dd

Please sign in to comment.