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
Commit
e2946a1e
authored
Mar 10, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: do not automatically delete any hosts
parent
9359d317
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
cloud/settings.py
+1
-1
one/jobs/hourly/scheduled_vm_cleanup.py
+3
-2
No files found.
cloud/settings.py
View file @
e2946a1e
...
@@ -223,7 +223,7 @@ firewall_settings = {
...
@@ -223,7 +223,7 @@ firewall_settings = {
"dns_ttl"
:
"300"
,
"dns_ttl"
:
"300"
,
}
}
EMAIL_HOST
=
'
cronos.ik.bme.hu'
EMAIL_HOST
=
'
152.66.243.92'
# giccero ipv4
CLOUD_URL
=
'https://cloud.ik.bme.hu/'
CLOUD_URL
=
'https://cloud.ik.bme.hu/'
try
:
try
:
...
...
one/jobs/hourly/scheduled_vm_cleanup.py
View file @
e2946a1e
...
@@ -32,8 +32,9 @@ class Job(HourlyJob):
...
@@ -32,8 +32,9 @@ class Job(HourlyJob):
print
"
%
s delete:
%
s"
%
(
i
.
name
,
i
.
time_of_delete
)
print
"
%
s delete:
%
s"
%
(
i
.
name
,
i
.
time_of_delete
)
delete
=
i
.
time_of_delete
.
replace
(
minute
=
0
,
second
=
0
,
microsecond
=
0
)
delete
=
i
.
time_of_delete
.
replace
(
minute
=
0
,
second
=
0
,
microsecond
=
0
)
if
i
.
time_of_delete
<
now
:
if
i
.
time_of_delete
<
now
:
msg
=
render_to_string
(
'mails/notification-delete-now.txt'
,
{
'user'
:
i
.
owner
,
'instance'
:
i
,
'url'
:
url
}
)
# msg = render_to_string('mails/notification-delete-now.txt', { 'user': i.owner, 'instance': i, 'url': url } )
SendMailTask
.
delay
(
to
=
i
.
owner
.
email
,
subject
=
'[IK Cloud]
%
s'
%
i
.
name
,
msg
=
msg
)
# SendMailTask.delay(to=i.owner.email, subject='[IK Cloud] %s' % i.name, msg=msg)
pass
else
:
else
:
for
t
in
d
:
for
t
in
d
:
if
delete
==
d
[
t
]:
if
delete
==
d
[
t
]:
...
...
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