Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6df60690
authored
Feb 20, 2013
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall: fix CNAME record
parent
f06f423d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
firewall/models.py
+1
-0
No files found.
firewall/models.py
View file @
6df60690
...
@@ -309,6 +309,7 @@ class Record(models.Model):
...
@@ -309,6 +309,7 @@ class Record(models.Model):
retval
[
'name'
]
=
self
.
host
.
get_fqdn
()
retval
[
'name'
]
=
self
.
host
.
get_fqdn
()
elif
self
.
type
==
'CNAME'
:
elif
self
.
type
==
'CNAME'
:
retval
[
'address'
]
=
self
.
host
.
get_fqdn
()
retval
[
'address'
]
=
self
.
host
.
get_fqdn
()
retval
[
'name'
]
=
self
.
name
+
u'.'
+
unicode
(
self
.
domain
)
else
:
else
:
if
not
self
.
name
:
if
not
self
.
name
:
retval
[
'name'
]
=
unicode
(
self
.
domain
)
retval
[
'name'
]
=
unicode
(
self
.
domain
)
...
...
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