Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
0285d5fb
Commit
0285d5fb
authored
Oct 11, 2011
by
Giorgos Verigakis
Browse files
imagemetadata_set has been renamed to metadata
parent
dba0e10b
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-tools/snf-admin
View file @
0285d5fb
...
...
@@ -312,7 +312,7 @@ class RegisterImage(Command):
def
add_options
(
self
,
parser
):
parser
.
add_option
(
'--meta'
,
dest
=
'meta'
,
action
=
'append'
,
metavar
=
'KEY=VAL'
,
help
=
'a
ssign image to user with id UID
'
)
help
=
'a
dd metadata (can be used multiple times)
'
)
parser
.
add_option
(
'--public'
,
action
=
'store_true'
,
dest
=
'public'
,
default
=
False
,
help
=
'make image public'
)
parser
.
add_option
(
'-u'
,
dest
=
'uid'
,
metavar
=
'UID'
,
...
...
@@ -344,7 +344,7 @@ class RegisterImage(Command):
for
m
in
self
.
meta
:
key
,
sep
,
val
=
m
.
partition
(
'='
)
if
key
and
val
:
image
.
image
metadata
_set
.
create
(
meta_key
=
key
,
meta_value
=
val
)
image
.
metadata
.
create
(
meta_key
=
key
,
meta_value
=
val
)
else
:
print
'WARNING: Ignoring meta'
,
m
...
...
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