Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iliya Manolov
slapos.toolbox
Commits
b83251cf
Commit
b83251cf
authored
Jan 27, 2012
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add function to get information about agent instance on Wordpress.
parent
7e872d28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
slapos/wordpress/ia/http/__init__.py
slapos/wordpress/ia/http/__init__.py
+10
-0
No files found.
slapos/wordpress/ia/http/__init__.py
View file @
b83251cf
...
...
@@ -366,6 +366,16 @@ def log_list():
return
response
@
app
.
route
(
'/info/<name>'
)
def
info
(
name
):
if
name
==
'computerId'
:
return
app
.
config
[
'COMPUTER_ID'
]
elif
name
==
'partitionId'
:
return
app
.
config
[
'PARTITION_ID'
]
elif
name
==
'type'
:
return
app
.
config
[
'AGENT_TYPE'
]
else
:
abort
(
httplib
.
NOT_FOUND
)
def
main
():
global
app
...
...
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