Commit c5c20f42 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Fix up for V2 API.

parent e58daa75
#! /usr/bin/env python
# Copyright (c) 2008-2010 University of Utah and the Flux Group.
# Copyright (c) 2008-2013 University of Utah and the Flux Group.
......@@ -93,13 +93,17 @@ print "Renewed the slice, asking for slice credential again";
slicecred = get_slice_credential( myslice, mycredential )
print "Got the slice credential, renewing the sliver";
params = [SLICEURN, [slicecred], valid_until]
params = [SLICEURN, [slicecred], valid_until, {"geni_extend_alap": 1}]
response = do_method("am/2.0", "RenewSliver", params,
if response:
print "Sliver has been renewed until " + valid_until
if response["code"]["geni_code"]:
Fatal("Could not renew sliver: %s" % response["output"])
print "Sliver has been renewed until " + response["value"]
print "Renewal request denied by aggregate."
print "Renewal failed at aggregate."
except xmlrpclib.Fault, e:
Fatal("Could not renew sliver: %s" % (str(e)))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment