Merge "Set swarm api_address protocol to tcp on all cases."
This commit is contained in:
commit
21a74eeec7
|
@ -28,12 +28,10 @@ class SwarmApiAddressOutputMapping(template_def.OutputMapping):
|
|||
|
||||
output_value = self.get_output_value(stack)
|
||||
if output_value is not None:
|
||||
protocol = 'https'
|
||||
if baymodel.tls_disabled:
|
||||
protocol = 'tcp'
|
||||
|
||||
# Note(rocha): protocol should always be tcp as the docker
|
||||
# command client does not handle https (see bug #1604812).
|
||||
params = {
|
||||
'protocol': protocol,
|
||||
'protocol': 'tcp',
|
||||
'address': output_value,
|
||||
'port': DOCKER_PORT,
|
||||
}
|
||||
|
|
|
@ -433,7 +433,7 @@ class AtomicK8sTemplateDefinitionTestCase(base.TestCase):
|
|||
|
||||
def test_update_swarm_outputs_if_baymodel_is_secure(self):
|
||||
address = 'updated_address'
|
||||
protocol = 'https'
|
||||
protocol = 'tcp'
|
||||
port = '2376'
|
||||
params = {
|
||||
'protocol': protocol,
|
||||
|
|
Loading…
Reference in New Issue