Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
opms-command
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
赵凯
opms-command
Commits
738173be
Commit
738173be
authored
Apr 07, 2024
by
赵凯
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
0feb1e29
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
task_patch_api.py
apis/task_patch_api.py
+3
-1
opms.py
opms.py
+3
-0
No files found.
apis/task_patch_api.py
View file @
738173be
...
...
@@ -78,7 +78,9 @@ def tasksPatch(taskid):
'cookie'
:
cookie
}
response
=
requests
.
request
(
"PATCH"
,
url
,
headers
=
headers
,
data
=
payload
)
# rst = json.loads(response.text)
print
(
response
)
rst
=
json
.
loads
(
response
.
text
)
print
(
response
)
# print("任务开始执行...")
# if rst['code'] == -1:
# print("任务执行异常:" + rst['msg'])
...
...
opms.py
View file @
738173be
...
...
@@ -155,6 +155,9 @@ while is_continue == 1:
elif
task_status
==
4
:
print
(
"部署成功"
)
break
elif
task_status
==
0
:
print
(
"权限不足;请到部署后台手动点击"
)
break
else
:
print
(
"部署异常"
)
break
...
...
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