diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-10-09 10:39:05 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-10-09 10:39:05 +0300 |
commit | d278969719a9fd089fe39eb74c31fcfe1ddac4fd (patch) | |
tree | f14c4f24e0ed684e394a4bfeca4e7e63f38ffc74 /gsxws/repairs.py | |
parent | c6c71309b48062ef9f0315b0d2fe69d6b65fe301 (diff) | |
download | py-gsxws-d278969719a9fd089fe39eb74c31fcfe1ddac4fd.tar.gz py-gsxws-d278969719a9fd089fe39eb74c31fcfe1ddac4fd.tar.bz2 py-gsxws-d278969719a9fd089fe39eb74c31fcfe1ddac4fd.zip |
Return diagnostic suites as two-tuple
Diffstat (limited to 'gsxws/repairs.py')
-rw-r--r-- | gsxws/repairs.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py index 0d877a1..989c94d 100644 --- a/gsxws/repairs.py +++ b/gsxws/repairs.py @@ -274,12 +274,16 @@ class CarryInRepair(Repair): """ self._namespace = "emea:" result = self._submit("repairData", "CreateCarryIn", "repairConfirmation") + + if hasattr(result, 'repairConfirmation'): + messages = result.repairConfirmation.messages + raise GsxError(messages) + self.dispatchId = result.confirmationNumber return result def update(self, newdata): """ - Description The Update Carry-In Repair API allows the service providers to update the existing open carry-in repairs. This API assists in addition/deletion of parts and addition of notes |