aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2014-05-13 22:08:49 +0300
committerFilipp Lepalaan <filipp@mac.com>2014-05-13 22:08:49 +0300
commitf0269e9e62278dd0f13dad5954244e66a7d231d4 (patch)
treef572a8d9fe7fca1396b518009e009a3431eef078 /gsxws
parentec6e5b9bda22af2040a7b5f903d32abfa942627f (diff)
downloadpy-gsxws-f0269e9e62278dd0f13dad5954244e66a7d231d4.tar.gz
py-gsxws-f0269e9e62278dd0f13dad5954244e66a7d231d4.tar.bz2
py-gsxws-f0269e9e62278dd0f13dad5954244e66a7d231d4.zip
Product diags SN attribute fix
Diffstat (limited to 'gsxws')
-rw-r--r--gsxws/products.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gsxws/products.py b/gsxws/products.py
index a66e251..b1bd5a7 100644
--- a/gsxws/products.py
+++ b/gsxws/products.py
@@ -113,11 +113,11 @@ class Product(object):
"""
>>> Product('DGKFL06JDHJP').diagnostics()
"""
- diags = Diagnostics(serialNumber=self.serialNumber)
-
if hasattr(self, "alternateDeviceId"):
diags = Diagnostics(alternateDeviceId=self.alternateDeviceId)
-
+ else:
+ diags = Diagnostics(serialNumber=self.serialNumber)
+
return diags.fetch()
def fetch_image(self, url=None):