git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd852b
)
Sometimes, backend_status can fail because of unicode issues. Ignore
author
Sapan Bhatia
<gwsapan@gmail.com>
Fri, 22 Aug 2014 07:07:59 +0000
(
03:07
-0400)
committer
Sapan Bhatia
<gwsapan@gmail.com>
Fri, 22 Aug 2014 07:07:59 +0000
(
03:07
-0400)
for now.
planetstack/openstack_observer/syncstep.py
patch
|
blob
|
history
diff --git
a/planetstack/openstack_observer/syncstep.py
b/planetstack/openstack_observer/syncstep.py
index
4852e43
..
ad148b5
100644
(file)
--- a/
planetstack/openstack_observer/syncstep.py
+++ b/
planetstack/openstack_observer/syncstep.py
@@
-93,10
+93,15
@@
class SyncStep:
except:
o.backend_status = str_e
+ # TOFIX:
+ # DatabaseError: value too long for type character varying(140)
if (o.pk):
- o.save(update_fields=['backend_status'])
+ try:
+ o.save(update_fields=['backend_status'])
+ except:
+ print "Could not update backend status field!"
+ pass
- logger.log_exc("sync step failed!")
failed.append(o)
return failed