Particularly in non-verbose mode.
Signed-off-by: Zack Cerza <zack@redhat.com>
set_remote(dest_path, repo_url)
fetch_branch(dest_path, branch)
touch_file(sentinel)
- else:
- log.info("%s was just updated or references a specific commit; assuming it is current", dest_path)
if commit and os.path.exists(repo_reset):
return
GitError for other errors
"""
validate_branch(branch)
- log.info("Fetching %s from origin", branch)
+ log.info("Fetching %s from origin", repo_path.split("/")[-1])
args = ['git', 'fetch']
if shallow:
args.extend(['--depth', '1'])
else:
reset_branch = 'origin/%s' % branch
reset_ref = commit or reset_branch
- log.info('Resetting repo at %s to %s', dest_path, reset_ref)
+ log.debug('Resetting repo at %s to %s', dest_path, reset_ref)
# This try/except block will notice if the requested branch doesn't
# exist, whether it was cloned or fetched.
try:
flavor = util.get_install_task_flavor(full_job_config)
version = util.package_version_for_hash(sha1, flavor, os_type,
os_version, self.args.machine_type)
- if version:
- log.debug(f"Found {version} for {os_type} {os_version} {flavor}")
- else:
+ if not version:
jobs_missing_packages.append(job)
log.error(f"Packages for os_type '{os_type}', flavor {flavor} and "
f"ceph hash '{sha1}' not found")
dry_run=self.args.dry_run,
)
- if self.args.dry_run:
- log.debug("Base job config:\n%s" % self.base_config)
-
with open(base_yaml_path, 'w+b') as base_yaml:
base_yaml.write(str(self.base_config).encode())
),
)
- if bp.distro == CONTAINER_DISTRO and bp.flavor == CONTAINER_FLAVOR:
- log.info('container build %s, checking for build_complete' % bp.distro)
- if not bp.build_complete:
- log.info('build not complete')
- return None
+ if (bp.distro == CONTAINER_DISTRO and bp.flavor == CONTAINER_FLAVOR and
+ not bp.build_complete):
+ log.info("Container build incomplete")
+ return None
try:
return bp.version
printable_args.append("'%s'" % item)
else:
printable_args.append(item)
- log.info('{0}{1}'.format(
+ log.debug('{0} command: {1}'.format(
log_prefix,
' '.join(printable_args),
))