Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
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
...
@@ -47,7 +47,7 @@ from common.models import HumanReadableObject, create_readable, Encoder
from
vm.tasks.agent_tasks
import
add_keys
,
del_keys
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__
)
logger
=
getLogger
(
__name__
)
...
@@ -296,6 +296,8 @@ def update_store_profile(sender, **kwargs):
...
@@ -296,6 +296,8 @@ def update_store_profile(sender, **kwargs):
profile
.
disk_quota
)
profile
.
disk_quota
)
except
NoStoreException
:
except
NoStoreException
:
logger
.
debug
(
"Store is not available."
)
logger
.
debug
(
"Store is not available."
)
except
NotOkException
:
logger
.
critical
(
"Store is not accepting connections."
)
post_save
.
connect
(
update_store_profile
,
sender
=
Profile
)
post_save
.
connect
(
update_store_profile
,
sender
=
Profile
)
...
@@ -315,6 +317,8 @@ def update_store_keys(sender, **kwargs):
...
@@ -315,6 +317,8 @@ def update_store_keys(sender, **kwargs):
profile
.
disk_quota
)
profile
.
disk_quota
)
except
NoStoreException
:
except
NoStoreException
:
logger
.
debug
(
"Store is not available."
)
logger
.
debug
(
"Store is not available."
)
except
NotOkException
:
logger
.
critical
(
"Store is not accepting connections."
)
post_save
.
connect
(
update_store_keys
,
sender
=
UserKey
)
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