Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Plugins
gitlab
Commits
61eaf1ec
Commit
61eaf1ec
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-playbooks/general#85 Linting
parent
1916cdd5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gitlab_host.py
+3
-3
3 additions, 3 deletions
gitlab_host.py
gitlab_issue.py
+3
-3
3 additions, 3 deletions
gitlab_issue.py
with
6 additions
and
6 deletions
gitlab_host.py
+
3
−
3
View file @
61eaf1ec
#!/usr/bin/python
#!/usr/bin/python
3
RETURN
=
'''
#
'''
...
...
@@ -54,7 +54,7 @@ def main():
else
:
git
=
gitlab
.
Gitlab
(
server_url
,
login_token
,
ssl_verify
=
verify_ssl
)
# type: gitlab
git
.
auth
()
except
Exception
,
e
:
except
Exception
as
e
:
module
.
fail_json
(
msg
=
"
Failed to connect to Gitlab server: %s
"
%
e
)
return
...
...
@@ -82,7 +82,7 @@ def main():
'
key
'
:
open
(
'
/root/.ssh/id_rsa.pub
'
).
read
(),
'
can_push
'
:
True
,
})
except
Exception
,
e
:
except
Exception
as
e
:
module
.
fail_json
(
msg
=
"
Creating new host project failed: %s
"
%
e
.
message
,
response
=
e
)
return
...
...
This diff is collapsed.
Click to expand it.
gitlab_issue.py
+
3
−
3
View file @
61eaf1ec
#!/usr/bin/python
#!/usr/bin/python
3
RETURN
=
'''
#
'''
...
...
@@ -196,7 +196,7 @@ def main():
else
:
git
=
gitlab
.
Gitlab
(
server_url
,
login_token
,
ssl_verify
=
verify_ssl
)
# type: gitlab
git
.
auth
()
except
Exception
,
e
:
except
Exception
as
e
:
module
.
fail_json
(
msg
=
"
Failed to connect to Gitlab server: %s
"
%
e
)
return
...
...
@@ -272,7 +272,7 @@ def main():
delay
*=
2
try
:
issue
=
metaProject
.
project
.
issues
.
create
(
arguments
)
# type: gitlab.Issue
except
Exception
,
e
:
except
Exception
as
e
:
pass
if
issue
:
retries
=
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment