Export SSH port number as host variable.

This commit is contained in:
Jeroen Hoekx 2012-04-14 13:12:32 +02:00
commit 54f4526160
2 changed files with 20 additions and 0 deletions

View file

@ -82,6 +82,12 @@ class TestInventory(unittest.TestCase):
assert vars == {}
def test_simple_port(self):
inventory = self.simple_inventory()
vars = inventory.get_variables('hera')
assert vars == {'ansible_ssh_port': 3000}
### Inventory API tests
def test_script(self):