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
21d4400c
Commit
21d4400c
authored
Oct 19, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc pep8 fixes
parent
c933a4c5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
2 deletions
+5
-2
lib/ansible/playbook/task.py
+0
-0
library/cloud/ovirt
+2
-1
library/packaging/homebrew
+0
-0
library/system/service
+1
-1
library/utilities/accelerate
+2
-0
No files found.
lib/ansible/playbook/task.py
View file @
21d4400c
library/cloud/ovirt
View file @
21d4400c
...
...
@@ -377,7 +377,8 @@ def main():
create_vm_template
(
c
,
vmname
,
image
,
zone
)
module
.
exit_json
(
changed
=
True
,
msg
=
"deployed VM
%
s from template
%
s"
%
(
vmname
,
image
))
elif
resource_type
==
'new'
:
create_vm
(
c
,
vmtype
,
vmname
,
zone
,
vmdisk_size
,
vmcpus
,
vmnic
,
vmnetwork
,
vmmem
,
vmdisk_alloc
,
sdomain
,
vmcores
,
vmos
,
vmdisk_int
)
# FIXME: refactor, use keyword args.
create_vm
(
c
,
vmtype
,
vmname
,
zone
,
vmdisk_size
,
vmcpus
,
vmnic
,
vmnetwork
,
vmmem
,
vmdisk_alloc
,
sdomain
,
vmcores
,
vmos
,
vmdisk_int
)
module
.
exit_json
(
changed
=
True
,
msg
=
"deployed VM
%
s from scratch"
%
vmname
)
else
:
module
.
exit_json
(
changed
=
False
,
msg
=
"You did not specify a resource type"
)
...
...
library/packaging/homebrew
View file @
21d4400c
library/system/service
View file @
21d4400c
...
...
@@ -880,7 +880,7 @@ class NetBsdService(Service):
if
os
.
path
.
isfile
(
rcfile
):
self
.
rcconf_file
=
rcfile
self
.
rcconf_key
=
"
%
s"
%
string
.
replace
(
self
.
name
,
"-"
,
"_"
)
;
self
.
rcconf_key
=
"
%
s"
%
string
.
replace
(
self
.
name
,
"-"
,
"_"
)
return
self
.
service_enable_rcconf
()
...
...
library/utilities/accelerate
View file @
21d4400c
...
...
@@ -168,6 +168,7 @@ def daemonize_self(module, password, port, minutes):
log
(
"daemonizing successful"
)
class
ThreadWithReturnValue
(
Thread
):
def
__init__
(
self
,
group
=
None
,
target
=
None
,
name
=
None
,
args
=
(),
kwargs
=
{},
Verbose
=
None
):
Thread
.
__init__
(
self
,
group
,
target
,
name
,
args
,
kwargs
,
Verbose
)
self
.
_return
=
None
...
...
@@ -176,6 +177,7 @@ class ThreadWithReturnValue(Thread):
if
self
.
_Thread__target
is
not
None
:
self
.
_return
=
self
.
_Thread__target
(
*
self
.
_Thread__args
,
**
self
.
_Thread__kwargs
)
def
join
(
self
,
timeout
=
None
):
Thread
.
join
(
self
,
timeout
=
timeout
)
return
self
.
_return
...
...
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