Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
a4c2c77b
Commit
a4c2c77b
authored
Sep 11, 2014
by
Kostas Papadimitriou
Browse files
ui: Remove UI_SNAPSHOTS_ENABLED setting
in favor of CYCLADES_SNAPSHOTS_ENABLED setting.
parent
4a027cf4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Changelog
View file @
a4c2c77b
...
...
@@ -21,6 +21,12 @@ Admin
* The ``ADMIN_BASE_URL`` setting should be adjusted in every node that Admin
is installed.
UI
--
* Remove UI_SNAPSHOTS_ENABLED setting. UI now uses CYCLADES_SNAPSHOTS_ENABLED
setting to resolve whether or not snapshot functionality should be enabled.
v0.16rc1
========
...
...
snf-cyclades-app/conf/20-snf-cyclades-app-ui.conf
View file @
a4c2c77b
...
...
@@ -181,6 +181,3 @@
#
## A list of os family names which don't support ssh public key injection
#UI_SSH_SUPPORT_OSFAMILY_EXCLUDE_LIST = ['windows']
#
## Enable/disable snapshot listing and volume snapshot actions in UI
#UI_SNAPSHOTS_ENABLED = True
snf-cyclades-app/synnefo/ui/views.py
View file @
a4c2c77b
...
...
@@ -148,8 +148,8 @@ DEFAULT_HOTPLUG_ENABLED = getattr(settings, "CYCLADES_GANETI_USE_HOTPLUG",
HOTPLUG_ENABLED
=
getattr
(
settings
,
"UI_HOTPLUG_ENABLED"
,
DEFAULT_HOTPLUG_ENABLED
)
VOLUME_MAX_SIZE
=
getattr
(
settings
,
"CYCLADES_VOLUME_MAX_SIZE"
,
200
)
;
SNAPSHOTS_ENABLED
=
getattr
(
settings
,
"
UI
_SNAPSHOTS_ENABLED"
,
True
)
;
VOLUME_MAX_SIZE
=
getattr
(
settings
,
"CYCLADES_VOLUME_MAX_SIZE"
,
200
)
SNAPSHOTS_ENABLED
=
getattr
(
settings
,
"
CYCLADES
_SNAPSHOTS_ENABLED"
,
True
)
def
template
(
name
,
request
,
context
):
template_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"templates/"
)
...
...
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