Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Cédric Le Ninivin
slapos.core
Commits
e75ab204
Commit
e75ab204
authored
Jun 22, 2011
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add request shorthand method
parent
a884e6cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
slapos/console.py
slapos/console.py
+4
-1
No files found.
slapos/console.py
View file @
e75ab204
...
@@ -84,7 +84,7 @@ class Config:
...
@@ -84,7 +84,7 @@ class Config:
if
not
self
.
master_url
:
if
not
self
.
master_url
:
raise
ValueError
(
'master-url is required.'
)
raise
ValueError
(
'master-url is required.'
)
def
run
():
def
run
():
usage
=
"usage: %s [options] CONFIGURATION_FILE"
%
sys
.
argv
[
0
]
usage
=
"usage: %s [options] CONFIGURATION_FILE"
%
sys
.
argv
[
0
]
# Parse arguments
# Parse arguments
...
@@ -96,4 +96,7 @@ def run():
...
@@ -96,4 +96,7 @@ def run():
key_file
=
config
.
key_file
,
cert_file
=
config
.
cert_file
)
key_file
=
config
.
key_file
,
cert_file
=
config
.
cert_file
)
local
=
globals
()
local
=
globals
()
local
[
'slap'
]
=
slap
local
[
'slap'
]
=
slap
# XXX-Cedric Maybe we should generate a new OpenOrder for each request?
local
[
'request'
]
=
slap
.
registerOpenOrder
().
request
__import__
(
"code"
).
interact
(
banner
=
""
,
local
=
globals
())
__import__
(
"code"
).
interact
(
banner
=
""
,
local
=
globals
())
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