Skip to content

FileConfig consistency with dockerpy#171

Merged
kitchoi merged 2 commits into
masterfrom
149-fileconfig
Jul 26, 2016
Merged

FileConfig consistency with dockerpy#171
kitchoi merged 2 commits into
masterfrom
149-fileconfig

Conversation

@stefanoborini

Copy link
Copy Markdown
Contributor

Fixes #149

@codecov-io

codecov-io commented Jul 26, 2016

Copy link
Copy Markdown

Current coverage is 85.13% (diff: 100%)

Merging #171 into master will increase coverage by 0.05%

@@             master       #171   diff @@
==========================================
  Files            36         36          
  Lines          1374       1379     +5   
  Methods           0          0          
  Messages          0          0          
  Branches        130        130          
==========================================
+ Hits           1169       1174     +5   
  Misses          166        166          
  Partials         39         39          

Powered by Codecov. Last update 524ed02...8758e1d

@@ -77,18 +70,18 @@ def __init__(self, *args, **kwargs):
self.docker_host = "unix://var/run/docker.sock"

self.tls_verify = (env.get("DOCKER_TLS_VERIFY", "") != "")

@kitchoi kitchoi Jul 26, 2016

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DOCKER_TLS_VERIFY=0 would evaluate to True here...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DOCKER_TLS_VERIFY is not a 1=true 0=false . It's a "defined" vs "not defined" flag.

moby/moby#22411

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. How strange.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks to me something that future developers might unknowingly change it.
Maybe adding moby/moby#22411 to the code as comment. We don't need to do it here, we can log this as one of the auditing issues.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really strange, it's quite common to test for definedness, and docker is not the only one doing that. Putting 1 is just a convention. It could be anything.

@kitchoi kitchoi Jul 27, 2016

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevertheless, issue 22411 on docker and its referenced issues show that I am not the only one surprised by this ;)

@kitchoi

kitchoi commented Jul 26, 2016

Copy link
Copy Markdown
Contributor

Looks good to merge. The single comment is orthogonal to this PR, so could be fixed separately.

@kitchoi kitchoi merged commit db319ec into master Jul 26, 2016
@kitchoi kitchoi deleted the 149-fileconfig branch July 26, 2016 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants