old_contents: import re
  
  def _SanitizeDeploymentName(deploymentNmae):
      sanitizedName = '-'.join(deploymentNmae.split("-")[-2:])[-20:]
      if re.match('[0-9-].*', sanitizedName):
          sanitizedName = 'cb-' + sanitizedName[-17:]
      return sanitizedName
  
  def BaseDeploymentName(context):
      return _SanitizeDeploymentName(context.env['deployment'])
  
  def ClusterName(context, clusterName):
      return '%s-%s' % (BaseDeploymentName(context), clusterName)
  
  def GroupName(context, clusterName, groupName):
      return '%s-%s-%s' % (BaseDeploymentName(context), clusterName, groupName)
  
  def RuntimeConfigName(context):
      return '%s-runtimeconfig' % BaseDeploymentName(context)
  
  def FirewallName(context):
      return '%s-firewall' % BaseDeploymentName(context)
  
  def InstanceTemplateName(context, clusterName, groupName):
      return '%s-%s-%s-it' % \
             (BaseDeploymentName(context), clusterName, groupName)
  
  def InstanceGroupManagerName(context, clusterName, groupName):
      return '%s-%s-%s-igm' % \
             (BaseDeploymentName(context), clusterName, groupName)
  
  def InstanceGroupInstanceBaseName(context, clusterName, groupName):
      return '%s-%s-%s-vm' % \
             (BaseDeploymentName(context), clusterName, groupName)
  
new_contents: import re
  
  def _SanitizeDeploymentName(deploymentName):
      sanitizedName = '-'.join(deploymentName.split("-")[-2:])[-20:]
      if re.match('[0-9-].*', sanitizedName):
          sanitizedName = 'cb-' + sanitizedName[-17:]
      return sanitizedName
  
  def BaseDeploymentName(context):
      return _SanitizeDeploymentName(context.env['deployment'])
  
  def ClusterName(context, clusterName):
      return '%s-%s' % (BaseDeploymentName(context), clusterName)
  
  def GroupName(context, clusterName, groupName):
      return '%s-%s-%s' % (BaseDeploymentName(context), clusterName, groupName)
  
  def RuntimeConfigName(context):
      return '%s-runtimeconfig' % BaseDeploymentName(context)
  
  def FirewallName(context):
      return '%s-firewall' % BaseDeploymentName(context)
  
  def InstanceTemplateName(context, clusterName, groupName):
      return '%s-%s-%s-it' % \
             (BaseDeploymentName(context), clusterName, groupName)
  
  def InstanceGroupManagerName(context, clusterName, groupName):
      return '%s-%s-%s-igm' % \
             (BaseDeploymentName(context), clusterName, groupName)
  
  def InstanceGroupInstanceBaseName(context, clusterName, groupName):
      return '%s-%s-%s-vm' % \
             (BaseDeploymentName(context), clusterName, groupName)
  
subject: Fix typo in naming.py