Skip to content

Commit

Permalink
SM-KILO: updated code to use version
Browse files Browse the repository at this point in the history
Closes-Bug: #1527720

CHANGES:
1. updated code to check against version number instead of release code name.

TESTING:
1. verified local_setting.py has code ommision  for kilo
2. verified contrail-dashboard  package got installed for juno but not for
kilo.

Change-Id: I8f1e226088a40317dda1a1a506a6e7021dcc2bbb
  • Loading branch information
Dheeraj Gautam committed Jan 26, 2016
1 parent 20da68f commit 8fc335b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
group => root,
content => template("${module_name}/local_settings.py.erb")
}
if ($package_sku != 'kilo') {
if ($package_sku !~ /^*2015.1.*/) {
package { 'contrail-openstack-dashboard':
ensure => latest,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ ALLOWED_HOSTS = '*'
COMPRESS_OFFLINE = True
LOGOUT_URL='/horizon/auth/logout/'

<%- if @package_sku != 'kilo' -%>
##TODO: remove the check for kilo once we have package available
<%- if @package_sku !~ /^*2015.1.*/ -%>
HORIZON_CONFIG['customization_module'] = 'contrail_openstack_dashboard.overrides'
<%- end -%>

0 comments on commit 8fc335b

Please sign in to comment.