Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix missing semicolons in health checks
  • Loading branch information
nhr committed May 17, 2016
1 parent 9b8bee8 commit db2a053
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -3,7 +3,7 @@ Dancer Sample App on OpenShift

This is a quickstart Dancer application for OpenShift v3 that you can use as a starting point to develop your own application and deploy it on an [OpenShift](https://github.com/openshift/origin) cluster.

If you'd like to install it, follow [these directions](https://github.com/openshift/rails-ex/blob/master/README.md#installation).
If you'd like to install it, follow [these directions](https://github.com/openshift/dancer-ex/blob/master/README.md#installation).

The steps in this document assume that you have access to an OpenShift deployment that you can deploy applications on.

Expand Down Expand Up @@ -106,4 +106,4 @@ It will also be necessary to update your application to talk to your database ba
You will then need to rebuild the application. This is done via either a `oc start-build` command, or through the web console, or a webhook trigger in github initiating a build after the code changes are pushed.

###License
This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to [CC0](http://creativecommons.org/publicdomain/zero/1.0/).
This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to [CC0](http://creativecommons.org/publicdomain/zero/1.0/).
2 changes: 1 addition & 1 deletion lib/default.pm
Expand Up @@ -47,7 +47,7 @@ get '/' => sub {

get '/health' => sub {
my $dbh = get_connection();
my $ping = $dbh->ping
my $ping = $dbh->ping();

if ($ping and $ping == 0) {
# This is the 'true but zero' case, meaning that ping() is not implemented for this DB type.
Expand Down
2 changes: 1 addition & 1 deletion lib/inventory.pm
Expand Up @@ -78,7 +78,7 @@ post '/' => sub {

get '/health' => sub {
my $dbh = get_connection();
my $ping = $dbh->ping
my $ping = $dbh->ping();

if ($ping and $ping == 0) {
# This is the 'true but zero' case, meaning that ping() is not implemented for this DB type.
Expand Down

0 comments on commit db2a053

Please sign in to comment.