Commit e9b1d76f by Bence Dányi

firewall: fix random errors

parent ac8ffba0
......@@ -10,6 +10,7 @@ from django.core.validators import MinValueValidator, MaxValueValidator
from cloud.settings import firewall_settings as settings
from django.db.models.signals import post_save
import re
import random
class Rule(models.Model):
CHOICES_type = (('host', 'host'), ('firewall', 'firewall'),
......
......@@ -430,7 +430,7 @@ class VmPortAddView(View):
public=None, private=port)
else:
inst.firewall_host.add_port(proto=request.POST['proto'],
public=private, private=None)
public=port, private=None)
except:
messages.error(request, _(u"Adding port failed."))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment