original_docstring:  Dump information of created server to a file. 
docstring: Dump information of created server to a file.
docstring_tokens: Dump information of created server to a file .
code: def create_configfile(IPv4, admin_pass):
      """ Dump information of created server to a file. """
      config = ConfigParser.RawConfigParser()
      config.add_section("credentials")
      config.set("credentials", "IPv4", "%s" % IPv4)
      config.set("credentials", "username", "root")
      config.set("credentials", "adminpass", "%s" % admin_pass)
  
      filename = "fabfile-%s.cfg" % os.getpid()
      with open(filename, "wb") as configfile:
          config.write(configfile)
      print("Configuration for %s have been dumped to file %s" % (IPv4, filename))
      return filename
code_tokens: def create_configfile ( IPv4 , admin_pass ) : config = ConfigParser . RawConfigParser ( ) config . add_section ( "credentials" ) config . set ( "credentials" , "IPv4" , "%s" % IPv4 ) config . set ( "credentials" , "username" , "root" ) config . set ( "credentials" , "adminpass" , "%s" % admin_pass ) filename = "fabfile-%s.cfg" % os . getpid ( ) with open ( filename , "wb" ) as configfile : config . write ( configfile ) print ( "Configuration for %s have been dumped to file %s" % ( IPv4 , filename ) ) return filename
short_docstring: Dump information of created server to a file.
short_docstring_tokens: Dump information of created server to a file .
comment: """ Dump information of created server to a file. """