Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
aa496e36
Commit
aa496e36
authored
Oct 13, 2013
by
David Stygstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor style change: removed unnecessary dictionary
parent
4b4e0926
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
library/net_infrastructure/openvswitch_bridge
+4
-4
library/net_infrastructure/openvswitch_port
+4
-4
No files found.
library/net_infrastructure/openvswitch_bridge
View file @
aa496e36
...
...
@@ -92,19 +92,19 @@ class OVSBridge(object):
def
run
(
self
):
'''Make the necessary changes'''
result
=
{
'changed'
:
False
}
changed
=
False
try
:
if
self
.
state
==
'absent'
:
if
self
.
exists
():
self
.
delete
()
result
[
'changed'
]
=
True
changed
=
True
elif
self
.
state
==
'present'
:
if
not
self
.
exists
():
self
.
add
()
result
[
'changed'
]
=
True
changed
=
True
except
Exception
,
e
:
self
.
module
.
fail_json
(
msg
=
str
(
e
))
self
.
module
.
exit_json
(
**
result
)
self
.
module
.
exit_json
(
changed
=
changed
)
def
main
():
...
...
library/net_infrastructure/openvswitch_port
View file @
aa496e36
...
...
@@ -95,19 +95,19 @@ class OVSPort(object):
def
run
(
self
):
'''Make the necessary changes'''
result
=
{
'changed'
:
False
}
changed
=
False
try
:
if
self
.
state
==
'absent'
:
if
self
.
exists
():
self
.
delete
()
result
[
'changed'
]
=
True
changed
=
True
elif
self
.
state
==
'present'
:
if
not
self
.
exists
():
self
.
add
()
result
[
'changed'
]
=
True
changed
=
True
except
Exception
,
e
:
self
.
module
.
fail_json
(
msg
=
str
(
e
))
self
.
module
.
exit_json
(
**
result
)
self
.
module
.
exit_json
(
changed
=
changed
)
def
main
():
...
...
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