- Timestamp:
- Jan 31, 2013, 4:13:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121219/ippToPsps/jython/datastore.py
r33774 r35076 1 1 #!/usr/bin/env jython 2 # EAM : config -> skychunk DONE 2 3 3 4 from subprocess import call, PIPE, Popen … … 19 20 20 21 ''' 21 def __init__(self, logger, config, ippToPspsDb):22 def __init__(self, logger, skychunk, ippToPspsDb): 22 23 23 24 # setup logger 24 25 self.logger = logger 25 self. config = config26 self.skychunk = skychunk 26 27 self.ippToPspsDb = ippToPspsDb 27 28 … … 42 43 command = "dsreg --add " + name + "\ 43 44 --link --datapath " + path + "\ 44 --type " + self. config.datastoreType + "\45 --product " + self. config.datastoreProduct + "\45 --type " + self.skychunk.datastoreType + "\ 46 --product " + self.skychunk.datastoreProduct + "\ 46 47 --list " + tempFile.name 47 48 … … 75 76 --del " + name + " \ 76 77 --rm \ 77 --product " + self. config.datastoreProduct78 --product " + self.skychunk.datastoreProduct 78 79 79 80 p = Popen(command, shell=True, stdout=PIPE, stderr=PIPE)
Note:
See TracChangeset
for help on using the changeset viewer.
