]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Bugfixing
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 19 Mar 2019 14:29:18 +0000 (15:29 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 19 Mar 2019 14:29:18 +0000 (15:29 +0100)
lib/webhooks/forge/__init__.py
lib/webhooks/forge/base_module_info.py
lib/webhooks/forge/cur_mod_release_info.py
lib/webhooks/forge/mod_release_info.py
lib/webhooks/forge/owner_info.py

index 032d5cdbd96b9590da003d2ce974f64e4f98301d..7f3f0dc5a90299a7e269ebac6cba5a95954cb40c 100644 (file)
@@ -20,7 +20,7 @@ from ..xlate import XLATOR
 
 from ..base_module_info import BaseModuleInfoError
 
-__version__ = '0.2.1'
+__version__ = '0.2.2'
 
 LOG = logging.getLogger(__name__)
 
@@ -102,7 +102,7 @@ class BaseForgeObject(FbBaseObject):
             self._slug = None
             return
         v = str(value).strip()
-        if value == '':
+        if v == '':
             self._slug = None
             return
         self._slug = v
@@ -119,7 +119,7 @@ class BaseForgeObject(FbBaseObject):
             self._uri = None
             return
         v = str(value).strip()
-        if value == '':
+        if v == '':
             self._uri = None
             return
         self._uri = v
index f5c77426d5af29aba4ea63fda63dfdb760c9c5b2..94116c686872fb36a4ed36160c1c7e7c3a58b64c 100644 (file)
@@ -22,7 +22,7 @@ from . import BaseForgeObject
 
 from .owner_info import ForgeOwnerInfo
 
-__version__ = '0.1.1'
+__version__ = '0.1.2'
 
 LOG = logging.getLogger(__name__)
 
@@ -80,7 +80,7 @@ class BaseForgeModuleInfo(BaseForgeObject):
             self._deprecated_at = value
             return
         v = str(value).strip()
-        if value == '':
+        if v == '':
             self._deprecated_at = None
             return
         self._deprecated_at = parse_forge_date(v)
@@ -97,7 +97,7 @@ class BaseForgeModuleInfo(BaseForgeObject):
             self._name = None
             return
         v = str(value).strip()
-        if value == '':
+        if v == '':
             self._name = None
             return
         self._name = v
index 4a235877f39ae82b92d354dd5b8c4dfa9167c62b..e87e29e04c43db8f55d183650dc07bad3273e700 100644 (file)
@@ -26,7 +26,7 @@ from .mod_release_info import ModuleReleaseInfo
 
 from .base_module_info import BaseForgeModuleInfo
 
-__version__ = '0.1.2'
+__version__ = '0.1.3'
 
 LOG = logging.getLogger(__name__)
 
@@ -239,7 +239,7 @@ class CurrentModuleReleaseInfo(ModuleReleaseInfo):
             self._updated_at = value
             return
         v = str(value).strip()
-        if value == '':
+        if v == '':
             self._updated_at = None
             return
         self._updated_at = parse_forge_date(v)
index e6ef8b9c98dae33effbb78a4df3d78eb1a34a08f..c973e77c3ec80b3d61d1cef20914cbba9a209cc8 100644 (file)
@@ -20,7 +20,7 @@ from ..xlate import XLATOR
 from . import parse_forge_date
 from . import BaseForgeObject
 
-__version__ = '0.1.1'
+__version__ = '0.1.2'
 
 LOG = logging.getLogger(__name__)
 
@@ -86,7 +86,7 @@ class ModuleReleaseInfo(BaseForgeObject):
             self._created_at = value
             return
         v = str(value).strip()
-        if value == '':
+        if v == '':
             self._created_at = None
             return
         self._created_at = parse_forge_date(v)
@@ -106,7 +106,7 @@ class ModuleReleaseInfo(BaseForgeObject):
             self._deleted_at = value
             return
         v = str(value).strip()
-        if value == '':
+        if v == '':
             self._deleted_at = None
             return
         self._deleted_at = parse_forge_date(v)
@@ -142,7 +142,7 @@ class ModuleReleaseInfo(BaseForgeObject):
             self._file_uri = None
             return
         v = str(value).strip()
-        if value == '':
+        if v == '':
             self._file_uri = None
             return
         self._file_uri = v
@@ -159,7 +159,7 @@ class ModuleReleaseInfo(BaseForgeObject):
             self._release_version = None
             return
         v = str(value).strip()
-        if value == '':
+        if v == '':
             self._release_version = None
             return
         self._release_version = v
index daba02a7761046a0b6fbd32cb88f35464dedc5b0..4984b3e8353a07c34284282bb56077375f9db6a2 100644 (file)
@@ -17,7 +17,7 @@ from ..xlate import XLATOR
 
 from . import BaseForgeObject
 
-__version__ = '0.2.1'
+__version__ = '0.2.2'
 
 LOG = logging.getLogger(__name__)
 
@@ -75,7 +75,7 @@ class ForgeOwnerInfo(BaseForgeObject):
             self._gravatar_id = None
             return
         v = str(value).strip()
-        if value == '':
+        if v == '':
             self._gravatar_id = None
             return
         self._gravatar_id = v
@@ -92,7 +92,7 @@ class ForgeOwnerInfo(BaseForgeObject):
             self._username = None
             return
         v = str(value).strip()
-        if value == '':
+        if v == '':
             self._username = None
             return
         self._username = v