From 8b51cc616a232f2e633d58d76d920c83e9a35c2e Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 28 Jan 2020 16:40:29 -0800 Subject: [PATCH] Copy unminimized flot files yui-compressor is not happy with flot's jquery.flot.js file. These files are actually pretty small especially when compared to our input json data. Lets just serve them as is. Depends-On: https://review.opendev.org/704716 Change-Id: Ibfd081bb73a6c352798a7822ab781c972ace4bc3 --- modules/openstack_project/manifests/status.pp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/openstack_project/manifests/status.pp b/modules/openstack_project/manifests/status.pp index 7bace6440f..9133a1f759 100644 --- a/modules/openstack_project/manifests/status.pp +++ b/modules/openstack_project/manifests/status.pp @@ -133,13 +133,12 @@ class openstack_project::status ( } exec { 'install_flot' : - command => 'yui-compressor -o \'.js$:.min.js\' /opt/flot/source/jquery.flot*.js; mv /opt/flot/source/jquery.flot*.min.js /srv/static/status', + command => 'cp /opt/flot/source/jquery.flot.js /opt/flot/source/jquery.canvaswrapper.js /opt/flot/source/jquery.colorhelpers.js /opt/flot/source/jquery.flot.*.js /srv/static/status', path => '/bin:/usr/bin', refreshonly => true, subscribe => Vcsrepo['/opt/flot'], require => [ File['/srv/static/status'], - Package['yui-compressor'], Vcsrepo['/opt/flot'], ], }