Use default port if ansible_ssh_port is not set for the delegated node

Also add testcase for it.
This commit is contained in:
Daniel Hokka Zakrisson
2012-11-01 11:08:24 +01:00
parent be300b562a
commit fbda2d4628
4 changed files with 23 additions and 5 deletions

View File

@@ -160,12 +160,19 @@ class TestPlaybook(unittest.TestCase):
actual = self._run(pb, 'test/alias_hosts')
expected = {
"alias-node.example.com": {
"changed": 3,
"changed": 5,
"failures": 0,
"ok": 4,
"ok": 6,
"skipped": 1,
"unreachable": 0,
}
},
"other-alias-node.example.com": {
"changed": 1,
"failures": 0,
"ok": 1,
"skipped": 0,
"unreachable": 1,
},
}
assert utils.jsonify(expected, format=True) == utils.jsonify(actual, format=True)