Skip to content

Commit

Permalink
Merge pull request cobbler#1606 from luofei163/master
Browse files Browse the repository at this point in the history
Fix config folder does not exist, can not be written to the file
  • Loading branch information
jmaas committed Apr 17, 2016
2 parents 8cde89f + 097a05c commit aa93052
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cobbler/modules/manage_import_signatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,10 @@ def yum_process_comps_file(self, comps_path, distro):

distro.source_repos.append([repo_url, repo_url2])

config_dir = os.path.dirname(fname)
if not os.path.exists(config_dir):
os.makedirs(config_dir)

# NOTE: the following file is now a Cheetah template, so it can be remapped
# during sync, that's why we have the @@http_server@@ left as templating magic.
# repo_url2 is actually no longer used. (?)
Expand Down

0 comments on commit aa93052

Please sign in to comment.