Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
822e58c5
authored
Jul 30, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workaround for not working storeserver
parent
a82ffc18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
circle/dashboard/models.py
+5
-1
No files found.
circle/dashboard/models.py
View file @
822e58c5
...
...
@@ -47,7 +47,7 @@ from common.models import HumanReadableObject, create_readable, Encoder
from
vm.tasks.agent_tasks
import
add_keys
,
del_keys
from
.store_api
import
Store
,
NoStoreException
from
.store_api
import
Store
,
NoStoreException
,
NotOkException
logger
=
getLogger
(
__name__
)
...
...
@@ -296,6 +296,8 @@ def update_store_profile(sender, **kwargs):
profile
.
disk_quota
)
except
NoStoreException
:
logger
.
debug
(
"Store is not available."
)
except
NotOkException
:
logger
.
critical
(
"Store is not accepting connections."
)
post_save
.
connect
(
update_store_profile
,
sender
=
Profile
)
...
...
@@ -315,6 +317,8 @@ def update_store_keys(sender, **kwargs):
profile
.
disk_quota
)
except
NoStoreException
:
logger
.
debug
(
"Store is not available."
)
except
NotOkException
:
logger
.
critical
(
"Store is not accepting connections."
)
post_save
.
connect
(
update_store_keys
,
sender
=
UserKey
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment