Exemple #1
0
 def create_file_with_system_records(self):
     system_records = IPASystemRecords(self.api)
     text = u'\n'.join(
         IPASystemRecords.records_list_from_zone(
             system_records.get_base_records()))
     [fd, name] = tempfile.mkstemp(".db", "ipa.system.records.")
     os.write(fd, text)
     os.close(fd)
     print("Please add records in this file to your DNS system:", name)
Exemple #2
0
 def create_file_with_system_records(self):
     system_records = IPASystemRecords(self.api)
     text = u'\n'.join(
         IPASystemRecords.records_list_from_zone(
             system_records.get_base_records()
         )
     )
     [fd, name] = tempfile.mkstemp(".db","ipa.system.records.")
     os.write(fd, text)
     os.close(fd)
     print("Please add records in this file to your DNS system:", name)
Exemple #3
0
 def create_file_with_system_records(self):
     system_records = IPASystemRecords(self.api)
     text = u'\n'.join(
         IPASystemRecords.records_list_from_zone(
             system_records.get_base_records()))
     with tempfile.NamedTemporaryFile(mode="w",
                                      prefix="ipa.system.records.",
                                      suffix=".db",
                                      delete=False) as f:
         f.write(text)
         print("Please add records in this file to your DNS system:",
               f.name)
Exemple #4
0
 def create_file_with_system_records(self):
     system_records = IPASystemRecords(self.api)
     text = u'\n'.join(
         IPASystemRecords.records_list_from_zone(
             system_records.get_base_records()
         )
     )
     with tempfile.NamedTemporaryFile(
             mode="w", prefix="ipa.system.records.",
             suffix=".db", delete=False
     ) as f:
         f.write(text)
         print("Please add records in this file to your DNS system:",
               f.name)