Skip to content

Commit

Permalink
tests: the CephNode fixture should provide the cluster subnet
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Schoen <[email protected]>
  • Loading branch information
andrewschoen committed Dec 6, 2016
1 parent a31c86c commit cd9b47c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ def CephNode(Ansible, Interface, request):
# I can assume eth1 because I know all the vagrant
# boxes we test with use that interface
address = Interface("eth1").addresses[0]
subnet = ".".join(vars["public_network"].split(".")[0:-1])
data = dict(
address=address,
subnet=subnet,
vars=vars,
)
return data
Expand Down

0 comments on commit cd9b47c

Please sign in to comment.