Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealFalcon committed Sep 24, 2024
1 parent 15e88e8 commit ffee802
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/unittests/config/test_cc_ntp.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ def _get_template_path(self, template_name, distro, templates_dir):
return path

def _generate_template(self, templates_dir, template=NTP_TEMPLATE):
# templates_dir = os.path.join(templates_dir, "templates")
# os.makedirs(templates_dir, exist_ok=True)
confpath = os.path.join(templates_dir, "client.conf")
template_fn = os.path.join(templates_dir, "client.conf.tmpl")
util.write_file(template_fn, content=template)
Expand Down Expand Up @@ -681,7 +679,7 @@ def test_ntp_user_provided_config_template_only(
}
expected_merged_cfg = {
"check_exe": "chronyd",
"confpath": "{tmpdir}/client.conf".format(tmpdir=tmpdir),
"confpath": f"{tmpdir}/client.conf",
"template_name": "client.conf",
"template": user_template,
"service_name": "chrony",
Expand Down

0 comments on commit ffee802

Please sign in to comment.