bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def arguments(): """Defines the command line arguments for the script.""" main_desc = ("Mirror a remote FTP directory into a local directory or vice " "versa through the lftp program") subs_desc = "Select a running mode from the following:" epilog = ("For detailed help for each mode, select a mode followed by help " "o...
def arguments(): """Defines the command line arguments for the script.""" main_desc = ("Mirror a remote FTP directory into a local directory or vice " "versa through the lftp program") subs_desc = "Select a running mode from the following:" epilog = ("For detailed help for each mode, select a mode followed by help " "o...
473,700
def arguments(): """Defines the command line arguments for the script.""" main_desc = ("Mirror a remote FTP directory into a local directory or vice " "versa through the lftp program") subs_desc = "Select a running mode from the following:" epilog = ("For detailed help for each mode, select a mode followed by help " "o...
def arguments(): """Defines the command line arguments for the script.""" main_desc = ("Mirror a remote FTP directory into a local directory or vice " "versa through the lftp program") subs_desc = "Select a running mode from the following:" epilog = ("For detailed help for each mode, select a mode followed by help " "o...
473,701
def bes_unit_size(f_size): """Get a size in bytes and convert it for the best unit for readability. Return two values: (int) bu_size -- Size of the path converted to the best unit for easy read (str) unit -- The units (IEC) for bu_size (from bytes(2^0) to YiB(2^80)) """ for exp in range(0, 90 , 10): bu_size = f_size...
def best_unit_size(bytes_size): """Get a size in bytes & convert it to the best IEC prefix for readability. Return a dictionary with three pair of keys/values: 's' -- (float) Size of path converted to the best unit for easy read 'u' -- (str) The prefix (IEC) for s (from bytes(2^0) to YiB(2^80)) 'b' -- (int / long) Th...
473,702
def bes_unit_size(f_size): """Get a size in bytes and convert it for the best unit for readability. Return two values: (int) bu_size -- Size of the path converted to the best unit for easy read (str) unit -- The units (IEC) for bu_size (from bytes(2^0) to YiB(2^80)) """ for exp in range(0, 90 , 10): bu_size = f_size...
def bes_unit_size(f_size): """Get a size in bytes and convert it for the best unit for readability. Return two values: (int) bu_size -- Size of the path converted to the best unit for easy read (str) unit -- The units (IEC) for bu_size (from bytes(2^0) to YiB(2^80)) """ for exp in range(0, 90 , 10): bu_size = abs(by...
473,703
def bes_unit_size(f_size): """Get a size in bytes and convert it for the best unit for readability. Return two values: (int) bu_size -- Size of the path converted to the best unit for easy read (str) unit -- The units (IEC) for bu_size (from bytes(2^0) to YiB(2^80)) """ for exp in range(0, 90 , 10): bu_size = f_size...
def bes_unit_size(f_size): """Get a size in bytes and convert it for the best unit for readability. Return two values: (int) bu_size -- Size of the path converted to the best unit for easy read (str) unit -- The units (IEC) for bu_size (from bytes(2^0) to YiB(2^80)) """ for exp in range(0, 90 , 10): bu_size = f_size...
473,704
def get_size(the_path): """Get size of a directory tree or a file in bytes.""" path_size = 0 if os.path.isfile(the_path): path_size = os.path.getsize(the_path) for path, dirs, files in os.walk(the_path): for fil in files: filename = os.path.join(path, fil) path_size += os.path.getsize(filename) return path_size
def get_size(the_path): """Get size of a directory tree or a file in bytes.""" path_size = 0 for path, directories, files in os.walk(the_path): for filename in files: path_size += os.lstat(os.path.join(path, filename)).st_size for directory in directories: path_size += os.lstat(os.path.join(path, directory)).st_size pa...
473,705
def mirror(args, log): """Mirror the directories.""" user = '' if args.anonymous else ' '.join(args.login) local, remote = os.path.normpath(args.local), os.path.normpath(args.remote) port = '-p {0}'.format(args.port) if args.port else '' include = ' --include-glob {0}'.format(args.inc_glob) if args.inc_glob else '' ex...
def mirror(args, log): """Mirror the directories.""" user = '' if args.anonymous else ' '.join(args.login) local, remote = os.path.normpath(args.local), os.path.normpath(args.remote) port = '-p {0}'.format(args.port) if args.port else '' include = ' --include-glob {0}'.format(args.inc_glob) if args.inc_glob else '' ex...
473,706
def mirror(args, log): """Mirror the directories.""" user = '' if args.anonymous else ' '.join(args.login) local, remote = os.path.normpath(args.local), os.path.normpath(args.remote) port = '-p {0}'.format(args.port) if args.port else '' include = ' --include-glob {0}'.format(args.inc_glob) if args.inc_glob else '' ex...
def mirror(args, log): """Mirror the directories.""" user = '' if args.anonymous else ' '.join(args.login) local, remote = os.path.normpath(args.local), os.path.normpath(args.remote) port = '-p {0}'.format(args.port) if args.port else '' include = ' --include-glob {0}'.format(args.inc_glob) if args.inc_glob else '' ex...
473,707
def arguments(): """Defines the command line arguments for the script.""" main_desc = ("Mirror a remote FTP directory into a local directory or vice " "versa through the lftp program") subs_desc = "Select a running mode from the following:" epilog = ("For detailed help for each mode, select a mode followed by help " "o...
def arguments(): """Defines the command line arguments for the script.""" main_desc = ("Mirror a remote FTP directory into a local directory or vice " "versa through the lftp program") subs_desc = "Select a running mode from the following:" epilog = ("For detailed help for each mode, select a mode followed by help " "o...
473,708
def send_body(self, DATA, code = None, msg = None, desc = None, ctype='application/octet-stream', headers={}): """ send a body in one part """ log.debug("Use send_body method")
def send_body(self, DATA, code = None, msg = None, desc = None, ctype='application/octet-stream', headers={}): """ send a body in one part """ log.debug("Use send_body method")
473,709
def send_body(self, DATA, code = None, msg = None, desc = None, ctype='application/octet-stream', headers={}): """ send a body in one part """ log.debug("Use send_body method")
def send_body(self, DATA, code = None, msg = None, desc = None, ctype='application/octet-stream', headers={}): """ send a body in one part """ log.debug("Use send_body method")
473,710
def send_body_chunks(self, DATA, code, msg, desc, ctype='text/xml; encoding="utf-8"'): """ send a body in chunks """
def send_body_chunks(self, DATA, code, msg=None, desc=None, ctype='text/xml"', headers={}): """ send a body in chunks """
473,711
def send_body_chunks(self, DATA, code, msg, desc, ctype='text/xml; encoding="utf-8"'): """ send a body in chunks """
def send_body_chunks(self, DATA, code, msg, desc, ctype='text/xml; encoding="utf-8"'): """ send a body in chunks """
473,712
def do_OPTIONS(self): """return the list of capabilities """
def do_OPTIONS(self): """return the list of capabilities """
473,713
def _HEAD_GET(self, with_body=False): """ Returns headers and body for given resource """
def _HEAD_GET(self, with_body=False): """ Returns headers and body for given resource """
473,714
def get_data(self,uri, range = None): """ return the content of an object """ path=self.uri2local(uri) if os.path.exists(path): if os.path.isfile(path): file_size = os.path.getsize(path) if range == None: fp=open(path,"r") log.info('Serving content of %s' % uri) return Resource(fp, file_size) else: if range[0] == '': r...
def get_data(self,uri, range = None): """ return the content of an object """ path=self.uri2local(uri) if os.path.exists(path): if os.path.isfile(path): file_size = os.path.getsize(path) if range == None: fp=open(path,"r") log.info('Serving content of %s' % uri) return Resource(fp, file_size) else: if range[0] == '': r...
473,715
def edit_entry(self, **kwargs): """ In this call we handle a form which contains one entry. This entry has a text and time field which we expect to change. """ plone = self.getCommandSet("plone") core = self.getCommandSet("core") tracker = get_tracker(self.context) text = self.request.get('text') if not text: message =...
def edit_entry(self, **kwargs): """ In this call we handle a form which contains one entry. This entry has a text and time field which we expect to change. """ plone = self.getCommandSet("plone") core = self.getCommandSet("core") tracker = get_tracker(self.context) text = self.request.get('text') if not text: message =...
473,716
def add_entry(tracker, task, text): current_time = mx.DateTime.now() time = current_time - tracker.starttime rounded_time = mx.DateTime.DateTimeDelta( time.day, time.hour, math.ceil(time.minutes)) task.entries.append(Entry(text, rounded_time)) # Reset the timer's start time tracker.starttime = current_time
def add_entry(tracker, task, text): current_time = mx.DateTime.now() time = current_time - tracker.starttime rounded_time = round_time_to_minutes(time) task.entries.append(Entry(text, rounded_time)) # Reset the timer's start time tracker.starttime = current_time
473,717
def handleException(self, object, request, exc_info, retry_allowed=True): orig = removeAllProxies(object) oldHandleException(self, object, request, exc_info, retry_allowed=retry_allowed) if type(orig) is MethodType: notify(AfterCallEvent(orig.im_self, request)) else: notify(AfterCallEvent(orig, request))
def handleException(self, object, request, exc_info, retry_allowed=True): orig = removeAllProxies(object) oldHandleException(self, object, request, exc_info, retry_allowed=retry_allowed) if type(orig) is MethodType: notify(AfterCallEvent(orig.im_self, request)) else: notify(AfterCallEvent(orig, request))
473,718
def generate(self): self.uid = md5.md5(time.ctime()).hexdigest()
def generate(self): self.uid = md5.md5(time.ctime()).hexdigest()
473,719
def handleException(self, object, request, exc_info, retry_allowed=True): orig = removeAllProxies(object) oldHandleException(self, object, request, exc_info, retry_allowed=retry_allowed) if type(orig) is MethodType: notify(AfterCallEvent(orig.im_self, request)) else: notify(AfterCallEvent(orig, request))
def handleException(self, object, request, exc_info, retry_allowed=True): orig = removeAllProxies(object) oldHandleException(self, object, request, exc_info, retry_allowed=retry_allowed) if type(orig) is MethodType: notify(AfterExceptionCallEvent(orig.im_self, request)) else: notify(AfterCallEvent(orig, request))
473,720
def handleException(self, object, request, exc_info, retry_allowed=True): orig = removeAllProxies(object) oldHandleException(self, object, request, exc_info, retry_allowed=retry_allowed) if type(orig) is MethodType: notify(AfterCallEvent(orig.im_self, request)) else: notify(AfterCallEvent(orig, request))
def handleException(self, object, request, exc_info, retry_allowed=True): orig = removeAllProxies(object) oldHandleException(self, object, request, exc_info, retry_allowed=retry_allowed) if type(orig) is MethodType: notify(AfterCallEvent(orig.im_self, request)) else: notify(AfterExceptionCallEvent(orig, request))
473,721
def handleException(self, object, request, exc_info, retry_allowed=True): orig = removeAllProxies(object) oldHandleException(self, object, request, exc_info, retry_allowed=retry_allowed) if type(orig) is MethodType: notify(AfterCallEvent(orig.im_self, request)) else: notify(AfterCallEvent(orig, request))
defzopepublication.ZopePublication.handleException = handleException handleException(self,zopepublication.ZopePublication.handleException = handleException object,zopepublication.ZopePublication.handleException = handleException request,zopepublication.ZopePublication.handleException = handleException exc_info,zopepubl...
473,722
def generate(self): return md5.md5(datetime.datetime.now().isoformat()).hexdigest()
def generate(self): return md5.md5(datetime.datetime.now().isoformat()).hexdigest()
473,723
def handleException(self, object, request, exc_info, retry_allowed=True): super(BrowserPublication, self).handleException( object, request, exc_info, retry_allowed)
def handleException(self, object, request, exc_info, retry_allowed=True): super(BrowserPublication, self).handleException( object, request, exc_info, retry_allowed)
473,724
def run(self, params, args):
def run(self, params, args):
473,725
def run(self, params, args):
def run(self, params, args):
473,726
def deleteRule(self, table, extrawhere, service, network, outnetwork, chain, action, protocol):
def deleteRule(self, table, extrawhere, service, network, outnetwork, chain, action, protocol):
473,727
def deleteRule(self, table, extrawhere, service, network, outnetwork, chain, action, protocol):
def deleteRule(self, table, extrawhere, service, network, outnetwork, chain, action, protocol):
473,728
def deleteRule(self, table, extrawhere, service, network, outnetwork, chain, action, protocol):
def deleteRule(self, table, extrawhere, service, network, outnetwork, chain, action, protocol):
473,729
def deleteRule(self, table, extrawhere, service, network, outnetwork, chain, action, protocol):
def deleteRule(self, table, extrawhere, service, network, outnetwork, chain, action, protocol):
473,730
def deleteRule(self, table, extrawhere, service, network, outnetwork, chain, action, protocol):
def deleteRule(self, table, extrawhere, service, network, outnetwork, chain, action, protocol):
473,731
def deleteRule(self, table, extrawhere, service, network, outnetwork, chain, action, protocol):
def deleteRule(self, table, extrawhere, service, network, outnetwork, chain, action, protocol):
473,732
def run(self, params, args): (state, key) = self.fillParams([ ('state', ), ('key', ) ]) if not len(args): self.abort('must supply at least one host')
def run(self, params, args): (switch, key) = self.fillParams([ ('switch', ), ('key', ) ]) if not len(args): self.abort('must supply at least one host')
473,733
def run(self, params, args): (state, key) = self.fillParams([ ('state', ), ('key', ) ]) if not len(args): self.abort('must supply at least one host')
def run(self, params, args): (state, key) = self.fillParams([ ('state', ), ('key', ) ]) if not len(args): self.abort('must supply at least one host')
473,734
def run(self, params, args): (state, key) = self.fillParams([ ('state', ), ('key', ) ]) if not len(args): self.abort('must supply at least one host')
def run(self, params, args): (state, key) = self.fillParams([ ('state', ), ('key', ) ]) if not len(args): self.abort('must supply at least one host')
473,735
def run(self, params, args):
def run(self, params, args):
473,736
def bootloaderSetupChoices(anaconda): if anaconda.dir == DISPATCH_BACK: return # FIXME: this is a hack... if flags.livecd: return if anaconda.id.ksdata: anaconda.id.bootloader.updateDriveList(anaconda.id.ksdata.bootloader["driveorder"]) else: anaconda.id.bootloader.updateDriveList()
def bootloaderSetupChoices(anaconda): if anaconda.dir == DISPATCH_BACK: return # FIXME: this is a hack... if flags.livecd: return if anaconda.id.ksdata: anaconda.id.bootloader.updateDriveList(anaconda.id.ksdata.bootloader["driveorder"]) else: anaconda.id.bootloader.updateDriveList()
473,737
def bootloaderSetupChoices(anaconda): if anaconda.dir == DISPATCH_BACK: return # FIXME: this is a hack... if flags.livecd: return if anaconda.id.ksdata: anaconda.id.bootloader.updateDriveList(anaconda.id.ksdata.bootloader["driveorder"]) else: anaconda.id.bootloader.updateDriveList()
def bootloaderSetupChoices(anaconda): if anaconda.dir == DISPATCH_BACK: return # FIXME: this is a hack... if flags.livecd: return if anaconda.id.ksdata: anaconda.id.bootloader.updateDriveList(anaconda.id.ksdata.bootloader["driveorder"]) else: anaconda.id.bootloader.updateDriveList()
473,738
def bootloaderSetupChoices(anaconda): if anaconda.dir == DISPATCH_BACK: return # FIXME: this is a hack... if flags.livecd: return if anaconda.id.ksdata: anaconda.id.bootloader.updateDriveList(anaconda.id.ksdata.bootloader["driveorder"]) else: anaconda.id.bootloader.updateDriveList()
def bootloaderSetupChoices(anaconda): if anaconda.dir == DISPATCH_BACK: return # FIXME: this is a hack... if flags.livecd: return if anaconda.id.ksdata: anaconda.id.bootloader.updateDriveList(anaconda.id.ksdata.bootloader["driveorder"]) else: anaconda.id.bootloader.updateDriveList()
473,739
def bootloaderSetupChoices(anaconda): if anaconda.dir == DISPATCH_BACK: return # FIXME: this is a hack... if flags.livecd: return if anaconda.id.ksdata: anaconda.id.bootloader.updateDriveList(anaconda.id.ksdata.bootloader["driveorder"]) else: anaconda.id.bootloader.updateDriveList()
def bootloaderSetupChoices(anaconda): if anaconda.dir == DISPATCH_BACK: return # FIXME: this is a hack... if flags.livecd: return if anaconda.id.ksdata: anaconda.id.bootloader.updateDriveList(anaconda.id.ksdata.bootloader["driveorder"]) else: anaconda.id.bootloader.updateDriveList()
473,740
def dosync(): isys.sync() isys.sync() isys.sync()
def dosync(): isys.sync() isys.sync() isys.sync()
473,741
def dosync(): isys.sync() isys.sync() isys.sync()
def dosync(): isys.sync() isys.sync() isys.sync()
473,742
def rectifyLuksName(anaconda, name): if name is not None and name.startswith('mapper/luks-'): try: newname = anaconda.id.partitions.encryptedDevices.get(name[12:]) if newname is None: for luksdev in anaconda.id.partitions.encryptedDevices.values(): if os.path.basename(luksdev.getDevice(encrypted=1)) == name[12:]: newna...
def rectifyLuksName(anaconda, name): if name is not None and name.startswith('mapper/luks-'): try: newname = anaconda.id.partitions.encryptedDevices.get(name[12:]) if newname is None: for luksdev in anaconda.id.partitions.encryptedDevices.values(): if os.path.basename(luksdev.getDevice(encrypted=1)) == name[12:]: newna...
473,743
def rectifyLuksName(anaconda, name): if name is not None and name.startswith('mapper/luks-'): try: newname = anaconda.id.partitions.encryptedDevices.get(name[12:]) if newname is None: for luksdev in anaconda.id.partitions.encryptedDevices.values(): if os.path.basename(luksdev.getDevice(encrypted=1)) == name[12:]: newna...
def rectifyLuksName(anaconda, name): if name is not None and name.startswith('mapper/luks-'): try: newname = anaconda.id.partitions.encryptedDevices.get(name[12:]) if newname is None: for luksdev in anaconda.id.partitions.encryptedDevices.values(): if os.path.basename(luksdev.getDevice(encrypted=1)) == name[12:]: newna...
473,744
def getBootloader(): if not flags.livecd: return booty.getBootloader() else: return bootloaderInfo.isolinuxBootloaderInfo()
def getBootloader(): if not flags.livecd: return booty.getBootloader() else: return bootloaderInfo.isolinuxBootloaderInfo()
473,745
def hostlocal(self, name, dnszone): "Appends any manually defined hosts to domain file" filename = '/var/named/%s.domain.local' % name s = '' if os.path.isfile(filename): s += "; import from %s\n" % filename file = open(filename, 'r') s += file.read() file.close() s += '\n' return s
def hostlocal(self, name, dnszone): "Appends any manually defined hosts to domain file" filename = '/var/named/%s.domain.local' % name s = '' if os.path.isfile(filename): s += "\n;Imported from %s\n\n" % filename file = open(filename, 'r') s += file.read() file.close() s += '\n' return s
473,746
def hostlocal(self, name, dnszone): "Appends any manually defined hosts to domain file" filename = '/var/named/%s.domain.local' % name s = '' if os.path.isfile(filename): s += "; import from %s\n" % filename file = open(filename, 'r') s += file.read() file.close() s += '\n' return s
def hostlocal(self, name, dnszone): "Appends any manually defined hosts to domain file" filename = '/var/named/%s.domain.local' % name s = '' if os.path.isfile(filename): s += "; import from %s\n" % filename file = open(filename, 'r') s += file.read() file.close() else: s += "</file>\n" s += '<file name="%s" perms="0...
473,747
def writeGrub(self, instRoot, fsset, bl, langs, kernelList, chainList, defaultDev, justConfigFile): if len(kernelList) < 1: return "" images = bl.images.getImages() rootDev = fsset.getEntryByMountPoint("/").device.getDevice()
def writeGrub(self, instRoot, fsset, bl, langs, kernelList, chainList, defaultDev, justConfigFile): if len(kernelList) < 1: return "" images = bl.images.getImages() rootDev = fsset.getEntryByMountPoint("/").device.getDevice()
473,748
def run_sunos(self, host): # Ignore IPMI devices and get all the other configured # interfaces self.db.execute("select networks.ip, networks.device " +\ "from networks, nodes where " +\ "nodes.name='%s' " % (host) +\ "and networks.device!='ipmi' " +\ "and networks.node=nodes.id")
def run_sunos(self, host): # Ignore IPMI devices and get all the other configured # interfaces self.db.execute("select networks.ip, networks.device, " +\ "subnets.netmask from networks, nodes, " +\ "subnets where nodes.name='%s' " % (host)+\ "and networks.subnet=subnets.id " +\ "and networks.device!='ipmi' " +\ "and ne...
473,749
def run_sunos(self, host): # Ignore IPMI devices and get all the other configured # interfaces self.db.execute("select networks.ip, networks.device " +\ "from networks, nodes where " +\ "nodes.name='%s' " % (host) +\ "and networks.device!='ipmi' " +\ "and networks.node=nodes.id")
def run_sunos(self, host): # Ignore IPMI devices and get all the other configured # interfaces self.db.execute("select networks.ip, networks.device " +\ "from networks, nodes where " +\ "nodes.name='%s' " % (host) +\ "and networks.device!='ipmi' " +\ "and networks.node=nodes.id")
473,750
def run_sunos(self, host): # Ignore IPMI devices and get all the other configured # interfaces self.db.execute("select networks.ip, networks.device " +\ "from networks, nodes where " +\ "nodes.name='%s' " % (host) +\ "and networks.device!='ipmi' " +\ "and networks.node=nodes.id")
def run_sunos(self, host): # Ignore IPMI devices and get all the other configured # interfaces self.db.execute("select networks.ip, networks.device " +\ "from networks, nodes where " +\ "nodes.name='%s' " % (host) +\ "and networks.device!='ipmi' " +\ "and networks.node=nodes.id")
473,751
def write_host_file_sunos(self, ip, device): s = '<file name="/etc/hostname.%s">\n' % device s += "%s\n" % ip s += '</file>\n' self.addText(s)
def write_host_file_sunos(self, ip, netmask, device): s = '<file name="/etc/hostname.%s">\n' % device s += "%s\n" % ip s += '</file>\n' self.addText(s)
473,752
def write_host_file_sunos(self, ip, device): s = '<file name="/etc/hostname.%s">\n' % device s += "%s\n" % ip s += '</file>\n' self.addText(s)
def write_host_file_sunos(self, ip, device): s = '<file name="/etc/hostname.%s">\n' % device s += "%s netmask %s\n" % (ip, netmask) s += '</file>\n' self.addText(s)
473,753
def getOSNames(self, args=None): """Returns a list of OS names. For each arg in the ARGS list normalize the name to one of either 'linux' or 'sunos' as they are the only supported OSes. If the ARGS list is empty return a list of all supported OS names. """
def getOSNames(self, args=None): """Returns a list of OS names. For each arg in the ARGS list normalize the name to one of either 'linux' or 'sunos' as they are the only supported OSes. If the ARGS list is empty return a list of all supported OS names. """
473,754
def run(self, params, args): (args, command) = self.fillPositionalArgs(('command', ))
def run(self, params, args): (args, command) = self.fillPositionalArgs(('command', ))
473,755
def kill(self): os.kill(self.p.pid, 9)
def kill(self): os.kill(self.p.pid, 9)
473,756
def kill(self): os.kill(self.p.pid, 9)
def kill(self): os.kill(self.p.pid, 9)
473,757
def kill(self): os.kill(self.p.pid, 9)
def kill(self): os.kill(self.p.pid, 9)
473,758
def kill(self): os.kill(self.p.pid, 9)
def kill(self): os.kill(self.p.pid, 9)
473,759
def kill(self): os.kill(self.p.pid, 9)
def kill(self): os.kill(self.p.pid, 9)
473,760
def kill(self): os.kill(self.p.pid, 9)
def kill(self): os.kill(self.p.pid, 9)
473,761
def kill(self): os.kill(self.p.pid, 9)
def kill(self): os.kill(self.p.pid, 9)
473,762
def kill(self): os.kill(self.p.pid, 9)
def kill(self): os.kill(self.p.pid, 9)
473,763
def run_linux(self, host): self.db.execute("""select distinctrow net.mac, net.ip, net.device, if(net.subnet, s.netmask, NULL), net.vlanid, net.subnet, net.module, s.mtu, net.options, net.channel from networks net, nodes n, subnets s where net.node = n.id and if(net.subnet, net.subnet = s.id, true) and n.name = "%s" ord...
def run_linux(self, host): self.db.execute("""select distinctrow net.mac, net.ip, net.device, if(net.subnet, s.netmask, NULL), net.vlanid, net.subnet, net.module, s.mtu, net.options, net.channel from networks net, nodes n, subnets s where net.node = n.id and if(net.subnet, net.subnet = s.id, true) and n.name = "%s" ord...
473,764
def run(self, params, args): hosts = self.getHostnames(args, managed_only=1)
def run(self, params, args): hosts = self.getHostnames(args, managed_only=1)
473,765
def run(self, params, args): hosts = self.getHostnames(args, managed_only=1)
def run(self, params, args): hosts = self.getHostnames(args, managed_only=1)
473,766
def run(self, params, args): hosts = self.getHostnames(args, managed_only=1)
def run(self, params, args): hosts = self.getHostnames(args, managed_only=1)
473,767
def nodeup(self, host): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(2) try: # # this catches the case when the host is down # and/or there is no ssh daemon running # sock.connect((host, 22))
def nodeup(self, host): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(2.0) try: # # this catches the case when the host is down # and/or there is no ssh daemon running # sock.connect((host, 22))
473,768
def nodeup(self, host): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(2) try: # # this catches the case when the host is down # and/or there is no ssh daemon running # sock.connect((host, 22))
def nodeup(self, host): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(2) try: # # this catches the case when the host is down # and/or there is no ssh daemon running # sock.connect((host, 22))
473,769
def run(self, params, args): (args, command) = self.fillPositionalArgs(('command', ))
def run(self, params, args): (args, command) = self.fillPositionalArgs(('command', ))
473,770
def run(self, params, args): (args, command) = self.fillPositionalArgs(('command', ))
def run(self, params, args): (args, command) = self.fillPositionalArgs(('command', ))
473,771
def run(self, params, args): (args, command) = self.fillPositionalArgs(('command', ))
def run(self, params, args): (args, command) = self.fillPositionalArgs(('command', ))
473,772
def run(self, params, args): (args, command) = self.fillPositionalArgs(('command', ))
def run(self, params, args): (args, command) = self.fillPositionalArgs(('command', ))
473,773
def run(self, params, args): (args, command) = self.fillPositionalArgs(('command', ))
def run(self, params, args): (args, command) = self.fillPositionalArgs(('command', ))
473,774
def printHost(self, name, hostname, mac, ip): self.addOutput('', '\t\thost %s {' % name) if mac: self.addOutput('', '\t\t\thardware ethernet %s;' % mac)
def printHost(self, name, hostname, mac, ip): self.addOutput('', '\t\thost %s {' % name) if mac: self.addOutput('', '\t\t\thardware ethernet %s;' % mac)
473,775
def run(self, url, sig):
def run(self, url, sig):
473,776
def run(self, url, sig):
def run(self, url, sig):
473,777
def getHostnames(self, names=None, managed_only=0): """Expands the given list of names to valid cluster hostnames. A name can be a hostname, IP address, our group (membership name), or a MAC address. Any combination of these is valid. If the names list is empty a list of all hosts in the cluster is returned. The foll...
def getHostnames(self, names=None, managed_only=0): """Expands the given list of names to valid cluster hostnames. A name can be a hostname, IP address, our group (membership name), or a MAC address. Any combination of these is valid. If the names list is empty a list of all hosts in the cluster is returned. The foll...
473,778
def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
473,779
def __init__(self, *args): this = apply(_quickfix.new_IntArray, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_IntArray(*args) try: self.this.append(this) except: self.this = this
473,780
def __getitem__(*args): return apply(_quickfix.IntArray___getitem__, args)
def __getitem__(*args): return apply(_quickfix.IntArray___getitem__, args)
473,781
def __init__(self, *args): this = apply(_quickfix.new_Exception, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_Exception(*args) try: self.this.append(this) except: self.this = this
473,782
def __str__(*args): return apply(_quickfix.Exception___str__, args)
def __str__(*args): return apply(_quickfix.Exception___str__, args)
473,783
def __init__(self, *args): this = apply(_quickfix.new_DataDictionaryNotFound, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_DataDictionaryNotFound(*args) try: self.this.append(this) except: self.this = this
473,784
def __init__(self, *args): this = apply(_quickfix.new_FieldNotFound, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_FieldNotFound(*args) try: self.this.append(this) except: self.this = this
473,785
def __init__(self, *args): this = apply(_quickfix.new_FieldConvertError, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_FieldConvertError(*args) try: self.this.append(this) except: self.this = this
473,786
def __init__(self, *args): this = apply(_quickfix.new_MessageParseError, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_MessageParseError(*args) try: self.this.append(this) except: self.this = this
473,787
def __init__(self, *args): this = apply(_quickfix.new_InvalidMessage, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_InvalidMessage(*args) try: self.this.append(this) except: self.this = this
473,788
def __init__(self, *args): this = apply(_quickfix.new_ConfigError, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_ConfigError(*args) try: self.this.append(this) except: self.this = this
473,789
def __init__(self, *args): this = apply(_quickfix.new_RuntimeError, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_RuntimeError(*args) try: self.this.append(this) except: self.this = this
473,790
def __init__(self, *args): this = apply(_quickfix.new_InvalidTagNumber, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_InvalidTagNumber(*args) try: self.this.append(this) except: self.this = this
473,791
def __init__(self, *args): this = apply(_quickfix.new_RequiredTagMissing, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_RequiredTagMissing(*args) try: self.this.append(this) except: self.this = this
473,792
def __init__(self, *args): this = apply(_quickfix.new_TagNotDefinedForMessage, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_TagNotDefinedForMessage(*args) try: self.this.append(this) except: self.this = this
473,793
def __init__(self, *args): this = apply(_quickfix.new_NoTagValue, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_NoTagValue(*args) try: self.this.append(this) except: self.this = this
473,794
def __init__(self, *args): this = apply(_quickfix.new_IncorrectTagValue, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_IncorrectTagValue(*args) try: self.this.append(this) except: self.this = this
473,795
def __init__(self, *args): this = apply(_quickfix.new_IncorrectDataFormat, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_IncorrectDataFormat(*args) try: self.this.append(this) except: self.this = this
473,796
def __init__(self, *args): this = apply(_quickfix.new_IncorrectMessageStructure, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_IncorrectMessageStructure(*args) try: self.this.append(this) except: self.this = this
473,797
def __init__(self, *args): this = apply(_quickfix.new_DuplicateFieldNumber, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_DuplicateFieldNumber(*args) try: self.this.append(this) except: self.this = this
473,798
def __init__(self, *args): this = apply(_quickfix.new_InvalidMessageType, args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _quickfix.new_InvalidMessageType(*args) try: self.this.append(this) except: self.this = this
473,799