Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
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
16003955
authored
Oct 26, 2016
by
Szabolcs Gelencser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quickfix, apply_async timeout, graphite access, storage account
name in config
parent
a40eeeeb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
circle/vm/models/instance.py
+1
-1
circle/vm/models/network.py
+1
-1
circle/vm/operations.py
+1
-1
No files found.
circle/vm/models/instance.py
View file @
16003955
...
...
@@ -872,7 +872,7 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
@property
def
metric_prefix
(
self
):
return
'vm.
%
s'
%
self
.
vm_
name
return
'vm.
%
s'
%
self
.
name
@contextmanager
def
activity
(
self
,
code_suffix
,
readable_name
,
on_abort
=
None
,
...
...
circle/vm/models/network.py
View file @
16003955
...
...
@@ -171,7 +171,7 @@ class Interface(Model):
result
=
net_tasks
.
create_azure_interface
.
apply_async
(
args
=
[
iface
.
pk
,
vlan
.
name
],
queue
=
"localhost.net.fast"
)
.
get
()
)
.
get
(
timeout
=
60
)
if
result
[
"azure_id"
]:
logger
.
debug
(
"created azure interface with id:
%
s"
%
(
result
[
"azure_id"
]))
...
...
circle/vm/operations.py
View file @
16003955
...
...
@@ -398,7 +398,7 @@ class DeployOperation(InstanceOperation):
def
_operation
(
self
):
nics
=
[
str
(
nic_id
)
for
nic_id
in
self
.
instance
.
interface_set
.
values_list
(
'azure_id'
,
flat
=
True
)]
storage_name
=
os
.
getenv
(
"STORAGE
ACCOUNT
"
)
storage_name
=
os
.
getenv
(
"STORAGE
_NAME
"
)
vm_size_version
=
self
.
instance
.
azure_template
vm_size_sku
=
vm_size_version
.
sku
vm_size_offer
=
vm_size_sku
.
offer
...
...
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