Skip to content

Conversation

@baloo
Copy link
Collaborator

@baloo baloo commented Feb 18, 2016

No description provided.

Signed-off-by: Arthur Gautier <baloo@gandi.net>
@julien-duponchelle
Copy link
Owner

Thanks a lot! Great job

julien-duponchelle added a commit that referenced this pull request Feb 18, 2016
@julien-duponchelle julien-duponchelle merged commit b9bbee5 into julien-duponchelle:master Feb 18, 2016

if isinstance(value, tuple):
l = len(value)
if l > 1:
Copy link
Contributor

Choose a reason for hiding this comment

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

my 2¢

try:
  self.hostname = value[0]
  self.username = value[1]
  …
except IndexError:
  pass

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.

3 participants