Fix log dir creation
Change-Id: I78677ace57ccc9f6f02088daa8ed8e43e378e7f5
diff --git a/_states/debmirror.py b/_states/debmirror.py
index 3819d7c..c868b40 100644
--- a/_states/debmirror.py
+++ b/_states/debmirror.py
@@ -110,7 +110,7 @@
# init file logger
l_dir = os.path.dirname(tgt['log_file'])
if not os.path.isdir(l_dir):
- __salt__['file.makedirs'](l_dir)
+ __salt__['file.makedirs'](l_dir + '/')
fh = logging.FileHandler("{0}".format(_get_target_path(name,tgt)['log_file']))
fh.setLevel(logging.DEBUG)
fh_format = logging.Formatter('%(asctime)s - %(lineno)d - %(levelname)-8s - %(message)s')