Skip to content

Commit 35a2af3

Browse files
committed
Fix Internal Server Error when updating scope
Change-Id: I7398b9fa71b843c16ad803fecdbabc39f79010a5
1 parent f71f34f commit 35a2af3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cloudkitty/api/v2/scope/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def patch(self, scope_id, scope_key=None, fetcher=None,
225225
'scope_key': update_storage_scope.scope_key,
226226
'fetcher': update_storage_scope.fetcher,
227227
'collector': update_storage_scope.collector,
228-
'state': update_storage_scope.state.isoformat(),
228+
'state': update_storage_scope.last_processed_timestamp.isoformat(),
229229
'active': update_storage_scope.active,
230230
'scope_activation_toggle_date':
231231
update_storage_scope.scope_activation_toggle_date.isoformat()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
fixes:
3+
- |
4+
Fix patch scope API which was returning ``Internal Server Error``.

0 commit comments

Comments
 (0)