Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-image-creator
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
itminedu
snf-image-creator
Commits
b1aea98e
Commit
b1aea98e
authored
12 years ago
by
Nikos Skalkotos
Browse files
Options
Downloads
Patches
Plain Diff
Minor cleanup (typos, comments, etc)
parent
42ace959
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
image_creator/disk.py
+1
-1
1 addition, 1 deletion
image_creator/disk.py
image_creator/kamaki_wrapper.py
+2
-2
2 additions, 2 deletions
image_creator/kamaki_wrapper.py
image_creator/main.py
+1
-1
1 addition, 1 deletion
image_creator/main.py
with
4 additions
and
4 deletions
image_creator/disk.py
+
1
−
1
View file @
b1aea98e
...
...
@@ -202,7 +202,7 @@ class DiskDevice(object):
self
.
root
=
roots
[
0
]
self
.
ostype
=
self
.
g
.
inspect_get_type
(
self
.
root
)
self
.
distro
=
self
.
g
.
inspect_get_distro
(
self
.
root
)
success
(
'
found a %s system
'
%
self
.
distro
)
success
(
'
found a
(n)
%s system
'
%
self
.
distro
)
def
destroy
(
self
):
"""
Destroy this DiskDevice instance.
"""
...
...
This diff is collapsed.
Click to expand it.
image_creator/kamaki_wrapper.py
+
2
−
2
View file @
b1aea98e
...
...
@@ -80,7 +80,7 @@ class Kamaki:
self
.
uploaded_object
=
None
def
upload
(
self
,
file_obj
,
size
=
None
,
remote_path
=
None
,
hp
=
None
,
up
=
None
):
"""
Upload a file to pithos
"""
if
remote_path
is
None
:
remote_path
=
basename
(
filename
)
...
...
@@ -101,7 +101,7 @@ class Kamaki:
raise
FatalError
(
"
Pithos client: %d %s
"
%
(
e
.
status
,
e
.
message
))
def
register
(
self
,
name
,
location
,
metadata
):
"""
Register an image to ~okeanos
"""
params
=
{
'
is_public
'
:
'
true
'
,
'
disk_format
'
:
'
diskdump
'
}
try
:
self
.
image_client
.
register
(
name
,
location
,
params
,
metadata
)
...
...
This diff is collapsed.
Click to expand it.
image_creator/main.py
+
1
−
1
View file @
b1aea98e
...
...
@@ -240,7 +240,7 @@ def image_creator():
output
()
if
options
.
register
:
output
(
'
Registing image to ~okeanos...
'
,
False
)
output
(
'
Regist
r
ing image to ~okeanos...
'
,
False
)
kamaki
.
register
(
options
.
register
,
uploaded_obj
,
metadata
)
success
(
'
done
'
)
output
()
...
...
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