Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run multiple selected checks with health:check #3

Closed
wants to merge 1 commit into from

Conversation

JLepeltier
Copy link

fixes #2

@@ -51,18 +51,24 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
$runner->useAdditionalReporters($input->getOption('reporter'));

if (null !== $checkNames = $input->getArgument('checkNames')) {
$checkNames = explode(',', $checkNames);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please be more defensive here. I could provide "test1, test2, test3" which would evaluate as "test1", " test2", " test3", which is not what I want.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello dav,

Will "test2," and "test3," not be took has another arguments ?

Regards,
Le 21 avr. 2015 19:44, "dav-m85" notifications@github.com a écrit :

In Command/HealthCheckCommand.php
#3 (comment)
:

@@ -51,18 +51,24 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
$runner->useAdditionalReporters($input->getOption('reporter'));

  •    if (null !== $checkNames = $input->getArgument('checkNames')) {
    
  •        $checkNames = explode(',', $checkNames);
    

Please be more defensive here. I could provide "test1, test2, test3" which
would evaluate as "test1", " test2", " test3", which is not what I want.


Reply to this email directly or view it on GitHub
https://github.com/lafourchette/LiipMonitorBundle/pull/3/files#r28803201
.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not if providen between quotes ;)

@dav-m85
Copy link

dav-m85 commented Apr 21, 2015

Hi nice PR thank you.

@JLepeltier
Copy link
Author

Thxs,

I will redo it with trim, phpdoc and removeAllChecksExcpet by tomorow.

Regards,
Le 21 avr. 2015 19:58, "dav-m85" notifications@github.com a écrit :

Hi nice PR thank you.


Reply to this email directly or view it on GitHub
#3 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run multiple selected checks with health:check
3 participants