Skip to content

Commit

Permalink
Added print_warnings switch in get_projects
Browse files Browse the repository at this point in the history
  • Loading branch information
kxr committed Feb 15, 2021
1 parent f92ae4f commit 375165e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omg/cmd/get/get_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


# Special function to handle `omg get project`
def get_project(ns, names, yaml_loc, need_ns):
def get_project(ns, names, yaml_loc, need_ns, print_warnings=True):
import glob
mg_path = Config().path
yaml_path = os.path.join(mg_path, yaml_loc)
Expand All @@ -19,7 +19,7 @@ def get_project(ns, names, yaml_loc, need_ns):
try:
# record when was this yaml generated (to calc age)
gen_ts = os.path.getmtime(yp)
res = load_yaml_file(yp, True)
res = load_yaml_file(yp, print_warnings)
except:
print("[ERROR] Could not read file:", yp)
sys.exit(1)
Expand Down

0 comments on commit 375165e

Please sign in to comment.