Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
You need to sign in or sign up before continuing.
Commit
4601dc18
authored
Feb 06, 2013
by
x
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #35
parent
7ff04ad5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
firewall/models.py
+2
-2
No files found.
firewall/models.py
View file @
4601dc18
...
...
@@ -248,8 +248,8 @@ class Record(models.Model):
raise
ValidationError
(
u'ez ismeretlen rekord, ez nudli!'
)
def
get_data
(
self
):
retval
=
{
'type'
:
self
.
type
,
'ttl'
:
self
.
ttl
,
'address'
:
self
.
address
}
if
self
.
host
:
retval
=
{
'
name'
:
self
.
name
,
'
type'
:
self
.
type
,
'ttl'
:
self
.
ttl
,
'address'
:
self
.
address
}
if
self
.
host
and
self
.
type
in
[
'CNAME'
,
'A'
,
'AAAA'
]
:
if
self
.
type
==
'A'
:
retval
[
'address'
]
=
self
.
host
.
pub_ipv4
if
self
.
host
.
pub_ipv4
and
not
self
.
host
.
shared_ip
else
self
.
host
.
ipv4
retval
[
'name'
]
=
self
.
host
.
get_fqdn
()
...
...
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