Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Check if gear does not have haproxy or distribute runs against non-scale... #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kunalsomani
Copy link

Non scaled Openshift app does not have haproxy and If user run distribute command against non scaled openshift app, it gives error file not found due to which I added check.

@@ -8,6 +8,7 @@ require 'deployment'

def read_gear_registry
gears = []
if File.exists?(File.join(ENV['OPENSHIFT_HOMEDIR'], 'haproxy-1.4', 'conf', 'gear-registry.db'))
Copy link
Owner

Choose a reason for hiding this comment

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

Would you mind fixing the indentation to be consistent with the rest of the file?

Also, instead of calling File.join twice, please extract a variable and use it in both places instead.

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants