Commit 88cc4953 authored by Devaev Maxim's avatar Devaev Maxim

Syntax error fix

parent 2d2663f0
......@@ -60,7 +60,7 @@ class DateTime(service.FunctionObject) :
clock_config_file_path_sample = config.value(SERVICE_NAME, "clock_config_file_path_sample")
if not os.access(clock_config_file_path, os.F_OK) :
if access(clock_config_file_path_sample, os.F_OK) :
if os.access(clock_config_file_path_sample, os.F_OK) :
shutil.copy2(clock_config_file_path_sample, clock_config_file_path)
else :
open(clock_config_file_path, "w").close()
......
......@@ -142,7 +142,7 @@ class SimpleDnsmasqConfig(service.FunctionObject) :
dnsmasq_config_file_path_sample = config.value(SERVICE_NAME, "dnsmasq_config_file_path_sample")
if not os.access(dnsmasq_config_file_path, os.F_OK) :
if access(dnsmasq_config_file_path_sample, os.F_OK) :
if os.access(dnsmasq_config_file_path_sample, os.F_OK) :
shutil.copy2(dnsmasq_config_file_path_sample, dnsmasq_config_file_path)
else :
open(dnsmasq_config_file_path, "w").close()
......
......@@ -52,7 +52,7 @@ class NtpConfig(service.FunctionObject) :
ntp_config_file_path_sample = config.value(SERVICE_NAME, "ntp_config_file_path_sample")
if not os.access(ntp_config_file_path, os.F_OK) :
if access(ntp_config_file_path_sample, os.F_OK) :
if os.access(ntp_config_file_path_sample, os.F_OK) :
shutil.copy2(ntp_config_file_path_sample, ntp_config_file_path)
else :
open(ntp_config_file_path, "w").close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment