Skip to content

Conversation

@parasit
Copy link

@parasit parasit commented Apr 25, 2017

Sometimes when we use different server version better use corresponding kubectl version.

Copy link

@hemarkus hemarkus left a comment

Choose a reason for hiding this comment

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

I like it, was also thinking about this :)
Anyway please write a commit message about what you did and why.
Also fix the two minor issues I found.

# If kubectlpath is defined in context section use it instead of default one
logging.debug('Try to read context related kubectlpath config')
try:
self.contextkubectlpath = cp.get(self.context, 'kubectlpath')

Choose a reason for hiding this comment

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

Don't create a member for this just use a local variable.

self.contextkubectlpath = cp.get(self.context, 'kubectlpath')
logging.debug('Context kubectlpath found ({})'.format(self.contextkubectlpath))
self.kubectlpath = self.contextkubectlpath
except:

Choose a reason for hiding this comment

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

Do not catch every exception

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.

2 participants