old_contents: 
  # Copyright 2016 Battelle Energy Alliance, LLC
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  
  from django.core.management.base import BaseCommand
  from ci.recipe import RecipeCreator
  from django.conf import settings
  from ci import models
  from optparse import make_option
  import sys
  
  class Command(BaseCommand):
      help = 'Load recipes from RECIPE_BASE_DIR into the DB'
      option_list = BaseCommand.option_list + (
          make_option('--force', default=False, action='store_true', dest='force', help='Force reloading the recipes'),
          make_option('--recipes', default=settings.RECIPE_BASE_DIR, dest='recipes', help='Recipes directory'),
          )
  
      def handle(self, *args, **options):
          if options.get('force'):
              rec = models.RecipeRepository.load()
              rec.sha = ""
              rec.save()
          print("Loading recipes from %s" % options.get("recipes"))
          rcreator = RecipeCreator.RecipeCreator(options.get('recipes'))
          # create the moosebuild and moose test users if they don't exists
          # FIXME: Really shouldn't have to do this, these should be auto created by RecipeCreator
          github, created = models.GitServer.objects.get_or_create(host_type=settings.GITSERVER_GITHUB)
          github.name = "github.com"
          github.save()
          gitlab, created = models.GitServer.objects.get_or_create(host_type=settings.GITSERVER_GITLAB)
          gitlab.name = "hpcgitlab.inl.gov"
          gitlab.save()
          bitbucket, created = models.GitServer.objects.get_or_create(host_type=settings.GITSERVER_BITBUCKET)
          bitbucket.name = "bitbucket.org"
          bitbucket.save()
  
          models.GitUser.objects.get_or_create(name="moosebuild", server=github)
          models.GitUser.objects.get_or_create(name="moosetest", server=gitlab)
          models.GitUser.objects.get_or_create(name="moosebuild", server=bitbucket)
          try:
              num_recipes = models.Recipe.objects.count()
              rcreator.load_recipes()
              new_num_recipes = models.Recipe.objects.count()
              print("Created %s new recipes" % (new_num_recipes - num_recipes))
          except Exception as e:
              print("Failed to load recipes: %s" % e)
              sys.exit(1)
  
new_contents: 
  # Copyright 2016 Battelle Energy Alliance, LLC
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  
  from django.core.management.base import BaseCommand
  from ci.recipe import RecipeCreator
  from django.conf import settings
  from ci import models
  from optparse import make_option
  import sys
  
  class Command(BaseCommand):
      help = 'Load recipes from RECIPE_BASE_DIR into the DB'
      option_list = BaseCommand.option_list + (
          make_option('--force', default=False, action='store_true', dest='force', help='Force reloading the recipes'),
          make_option('--recipes', default=settings.RECIPE_BASE_DIR, dest='recipes', help='Recipes directory'),
          )
  
      def handle(self, *args, **options):
          if options.get('force'):
              rec = models.RecipeRepository.load()
              rec.sha = ""
              rec.save()
          print("Loading recipes from %s" % options.get("recipes"))
          rcreator = RecipeCreator.RecipeCreator(options.get('recipes'))
          # FIXME: Really shouldn't have to do this, these should be auto created by RecipeCreator
          github, created = models.GitServer.objects.get_or_create(host_type=settings.GITSERVER_GITHUB)
          github.name = "github.com"
          github.save()
          gitlab, created = models.GitServer.objects.get_or_create(host_type=settings.GITSERVER_GITLAB)
          gitlab.name = settings.GITLAB_HOSTNAME
          gitlab.save()
          bitbucket, created = models.GitServer.objects.get_or_create(host_type=settings.GITSERVER_BITBUCKET)
          bitbucket.name = "bitbucket.org"
          bitbucket.save()
  
          try:
              num_recipes = models.Recipe.objects.count()
              rcreator.load_recipes()
              new_num_recipes = models.Recipe.objects.count()
              print("Created %s new recipes" % (new_num_recipes - num_recipes))
          except Exception as e:
              print("Failed to load recipes: %s" % e)
              sys.exit(1)
  
subject: Fix load_recipes command to use current GitLab hostname