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

OpenStack public ip addresses fix #235

Closed
wants to merge 1 commit into from

Conversation

mgogoulos
Copy link
Contributor

No description provided.

@mgogoulos
Copy link
Contributor Author

private_ips.append(ip)
else:
public_ips.append(ip)
except:
Copy link
Member

Choose a reason for hiding this comment

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

It would be good to catch a more specific exception.

@Kami
Copy link
Member

Kami commented Feb 11, 2014

@mgogoulos Bump^^

@mgogoulos
Copy link
Contributor Author

I did some changes and pushed the tests (they've already been in test_list_nodes inside).
On my dev environment they pass, but Travis CI fails! Not sure why this happens, self.assertEqual('12.16.18.28', node.public_ips[0]) could easily be written as self.assertTrue('12.16.18.28' in node.public_ips) since the order of the ips has changed and seems to break the tests, what do you think?

@Kami
Copy link
Member

Kami commented Feb 28, 2014

@mgogoulos Yeah, tests shouldn't rely on some arbitrary ordering, but in this case it seems like the order should always be the same? Or am I missing something?

@Kami
Copy link
Member

Kami commented Feb 28, 2014

@mgogoulos In any case, I'm also fine with using in approach.

@mgogoulos
Copy link
Contributor Author

Fixed the tests, ready to merge as I see this issue is referenced on other tickets as well (https://issues.apache.org/jira/browse/LIBCLOUD-452)

@Kami
Copy link
Member

Kami commented Mar 11, 2014

@mgogoulos Thanks.

Can you please sync this branch with trunk and squash all the commits? Currently, I can't apply patch cleanly onto trunk.

@mgogoulos
Copy link
Contributor Author

branch synced, commits were squashed and patch has been attached to https://issues.apache.org/jira/browse/LIBCLOUD-503

@Kami
Copy link
Member

Kami commented Mar 11, 2014

Merged into trunk.

Thanks.

@asfgit asfgit closed this in 859a0a4 Mar 11, 2014
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.

None yet

2 participants