D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib
/
python3.6
/
site-packages
/
cloudinit
/
distros
/
parsers
/
Filename :
__init__.py
back
Copy
# Copyright (C) 2012 Yahoo! Inc. # # Author: Joshua Harlow <harlowja@yahoo-inc.com> # # This file is part of cloud-init. See LICENSE file for license information. def chop_comment(text, comment_chars): comment_locations = [text.find(c) for c in comment_chars] comment_locations = [c for c in comment_locations if c != -1] if not comment_locations: return (text, "") min_comment = min(comment_locations) before_comment = text[0:min_comment] comment = text[min_comment:] return (before_comment, comment)
Name
Size
Last Modified
Owner
Permissions
Actions
__pycache__
Dir
April 24 2025 3:40:45
root
0755
__init__.py
0.527
KB
December 04 2023 11:47:40
root
0644
hostname.py
2.417
KB
December 04 2023 11:47:40
root
0644
hosts.py
2.666
KB
December 04 2023 11:47:40
root
0644
ifconfig.py
8.879
KB
December 04 2023 11:47:40
root
0644
networkmanager_conf.py
0.666
KB
December 04 2023 11:47:40
root
0644
resolv_conf.py
5.122
KB
December 04 2023 11:47:40
root
0644
sys_conf.py
3.812
KB
December 04 2023 11:47:40
root
0644
2017 © D7net | D704T team