[virt-bootstrap] [PATCH 3/7] pylint: Resolve test for membership

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



E713 test for membership should be 'not in'

Signed-off-by: Radostin Stoyanov <rstoyanov1@xxxxxxxxx>
---
 src/virtBootstrap/sources/docker_source.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/virtBootstrap/sources/docker_source.py b/src/virtBootstrap/sources/docker_source.py
index 0eace81..572018f 100644
--- a/src/virtBootstrap/sources/docker_source.py
+++ b/src/virtBootstrap/sources/docker_source.py
@@ -96,7 +96,7 @@ class DockerSource(object):
                                                 username=self.username,
                                                 password=self.password)
 
-        if not 'Layers' in image_details or not image_details['Layers']:
+        if 'Layers' not in image_details or not image_details['Layers']:
             raise ValueError('No image layers.')
 
         # Layers are in order:
-- 
2.14.3

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux