def _get_zone_object(self, file_name, zone_name): # pylint: disable=no-self-use from azure.cli.core._util import read_file_content file_path = os.path.join(TEST_DIR, "zone_files", file_name) file_text = None file_text = read_file_content(file_path) return parse_zone_file(file_text, zone_name)
def _load_file(path): if path == '-': content = sys.stdin.read() else: content = read_file_content(os.path.expanduser(path), allow_binary=True) return content[0:-1] if content and content[-1] == '\n' else content
def _get_zone_object(self, file_name, zone_name): # pylint: disable=no-self-use from azure.cli.core._util import read_file_content file_path = os.path.join(TEST_DIR, 'zone_files', file_name) file_text = None file_text = read_file_content(file_path) return parse_zone_file(file_text, zone_name)