Skip to content

Commit e3cc15b

Browse files
committed
Missing namespace fix from a485106
1 parent 19b88ec commit e3cc15b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

campaigns.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from jinja2 import Template
88

9-
from vm import reload_unicorn
9+
import vm
1010

1111
def validate_classes(campaign_class):
1212
"""Checks that the campaign class is valid"""
@@ -46,12 +46,12 @@ def deploy_to_homepage():
4646
remote_filename = '/var/apps/frontend/app/views/root/_campaign_notification.html.erb'
4747
put(StringIO.StringIO(contents), remote_filename, use_sudo=True, mirror_local_mode=True)
4848
sudo('chown deploy:deploy %s' % remote_filename)
49-
execute(reload_unicorn, name='frontend')
49+
execute(vm.reload_unicorn, name='frontend')
5050

5151
@task
5252
@roles('class-frontend')
5353
def remove_from_homepage():
5454
remote_filename = '/var/apps/frontend/app/views/root/_campaign_notification.html.erb'
5555
put(StringIO.StringIO(''), remote_filename, use_sudo=True, mirror_local_mode=True)
5656
sudo('chown deploy:deploy %s' % remote_filename)
57-
execute(reload_unicorn, name='frontend')
57+
execute(vm.reload_unicorn, name='frontend')

0 commit comments

Comments
 (0)