Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
d61fb9f3
authored
Jan 22, 2015
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
occi: remove public key creation
parent
9cf1ac9f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
circle/occi/occi.py
+0
-19
No files found.
circle/occi/occi.py
View file @
d61fb9f3
...
@@ -173,8 +173,6 @@ class Compute(Resource):
...
@@ -173,8 +173,6 @@ class Compute(Resource):
if
link
:
if
link
:
links
.
append
(
d
)
links
.
append
(
d
)
cls
.
create_public_key
(
user
,
attributes
)
params
=
{}
params
=
{}
params
[
'owner'
]
=
user
params
[
'owner'
]
=
user
title
=
attributes
.
get
(
"occi.core.title"
)
title
=
attributes
.
get
(
"occi.core.title"
)
...
@@ -241,23 +239,6 @@ class Compute(Resource):
...
@@ -241,23 +239,6 @@ class Compute(Resource):
for
sl
in
storagelinks
:
for
sl
in
storagelinks
:
cls
.
instance
.
attach_disk
(
user
=
user
,
disk
=
disk
)
cls
.
instance
.
attach_disk
(
user
=
user
,
disk
=
disk
)
@classmethod
def
create_public_key
(
cls
,
user
,
attributes
):
key_name
=
attributes
.
get
(
"org.openstack.credentials.publickey.name"
)
key_data
=
attributes
.
get
(
"org.openstack.credentials.publickey.data"
)
if
key_name
and
key_data
:
if
UserKey
.
objects
.
filter
(
name
=
key_name
,
user
=
user
):
key_name
=
"
%
s via OCCI @
%
s"
%
(
key_name
,
date_format
(
timezone
.
now
(),
"DATETIME_FORMAT"
)
)
key
=
UserKey
(
name
=
key_name
[:
50
],
key
=
key_data
,
user
=
user
)
if
not
UserKey
.
objects
.
filter
(
key
=
key
.
key
):
key
.
full_clean
()
key
.
save
()
def
render_location
(
self
):
def
render_location
(
self
):
return
"
%
s"
%
self
.
location
return
"
%
s"
%
self
.
location
...
...
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