diff --git a/chronograf/etc/build.py b/chronograf/etc/build.py index 80ac07426d..833500dbe0 100755 --- a/chronograf/etc/build.py +++ b/chronograf/etc/build.py @@ -698,7 +698,7 @@ def package(build_output, pkg_name, version, nightly=False, iteration=1, static= # logging.debug("Changing package output version from {} to {} for RPM.".format(version, package_version)) # Strip nightly version from package name new_outfile = outfile.replace("{}-{}".format(package_version, package_iteration), "nightly") - fs.RenameFile(outfile, new_outfile) + os.rename(outfile, new_outfile) outfile = new_outfile else: if package_type == 'rpm': @@ -706,7 +706,7 @@ def package(build_output, pkg_name, version, nightly=False, iteration=1, static= package_version = package_version.replace("-", "_") logging.debug("Changing package output version from {} to {} for RPM.".format(version, package_version)) new_outfile = outfile.replace("{}-{}".format(package_version, package_iteration), package_version) - fs.RenameFile(outfile, new_outfile) + os.rename(outfile, new_outfile) outfile = new_outfile outfiles.append(os.path.join(os.getcwd(), outfile)) logging.debug("Produced package files: {}".format(outfiles))