git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aef8a5c
)
Delete the site from sfa before we delete from plc, otherwise sfa wont have enough...
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 4 Aug 2009 22:08:49 +0000
(22:08 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 4 Aug 2009 22:08:49 +0000
(22:08 +0000)
PLC/Methods/DeleteSite.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/DeleteSite.py
b/PLC/Methods/DeleteSite.py
index
1eee12c
..
f3196cc
100644
(file)
--- a/
PLC/Methods/DeleteSite.py
+++ b/
PLC/Methods/DeleteSite.py
@@
-40,13
+40,15
@@
class DeleteSite(Method):
if site['peer_id'] is not None:
raise PLCInvalidArgument, "Not a local site"
+ # sync with sfa db
+ sfa = SFA()
+ sfa.delete_record(site, 'site')
+
site.delete()
# Logging variables
self.event_objects = {'Site': [site['site_id']]}
self.message = 'Site %d deleted' % site['site_id']
- sfa = SFA()
- sfa.delete_record(site, 'site')
return 1