Denormalize function defaults to latest version

Minor docs fix

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2016-09-19 17:13:53 -07:00
parent 66b395d950
commit 33424189d4
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ def denormalize_config(config):
version = config.version
if version not in (V2_0, V2_1):
version = V2_0
version = V2_1
return {
'version': version,

View File

@ -623,7 +623,7 @@ An example:
#### link_local_ips
> [Version 2.1 file format](#version-2.1) only.
> [Added in version 2.1 file format](#version-21).
Specify a list of link-local IPs. Link-local IPs are special IPs which belong
to a well known subnet and are purely managed by the operator, usually

View File

@ -257,7 +257,7 @@ class CLITestCase(DockerClientTestCase):
self.base_dir = 'tests/fixtures/v1-config'
result = self.dispatch(['config'])
assert yaml.load(result.stdout) == {
'version': '2.0',
'version': '2.1',
'services': {
'net': {
'image': 'busybox',