- def getRecord(self, hrn, filename=None):
- args = ["-u", config.getUser(), "-a", config.getAuthority(),
- "-r", config.getRegistry(), "-s", config.getSlicemgr(), "show", hrn]
+ def getRecord(self, hrn, type=None, filename=None):
+ args = ["-u", config.getUser(),
+ "-a", config.getAuthority(),
+ "-r", config.getRegistry(),
+ "-s", config.getSlicemgr(),
+ "show", hrn]
+ if type:
+ args.append("-t")
+ args.append(type)