
from base.hica_base import *

class TtyInjector(HicaInjector):
  def get_description(self):
    return 'Allocates a TTY for the process'

  def get_config_key(self):
    return 'io.hica.tty'

  def get_injected_args(self):
    return ((None, None, None),)

  def inject_config(self, config, args):
    super(TtyInjector, self).inject_config(config, args)
    config.append('-t')


from base.hica_base import *

class TtyInjector(HicaInjector):
  def get_description(self):
    return 'Allocates a TTY for the process'

  def get_config_key(self):
    return 'io.hica.tty'

  def get_injected_args(self):
    return ((None, HicaValueType.NONE, None),)

  def inject_config(self, config, args):
    super(TtyInjector, self).inject_config(config, args)
    config.append('-t')

Use the proper none value
Use the proper none value

  
  from base.hica_base import *
  
  class TtyInjector(HicaInjector):
    def get_description(self):
      return 'Allocates a TTY for the process'
  
    def get_config_key(self):
      return 'io.hica.tty'
  
    def get_injected_args(self):
-     return ((None, None, None),)
+     return ((None, HicaValueType.NONE, None),)
  
    def inject_config(self, config, args):
      super(TtyInjector, self).inject_config(config, args)
      config.append('-t')
  
Use the proper none value
## Code Before:

from base.hica_base import *

class TtyInjector(HicaInjector):
  def get_description(self):
    return 'Allocates a TTY for the process'

  def get_config_key(self):
    return 'io.hica.tty'

  def get_injected_args(self):
    return ((None, None, None),)

  def inject_config(self, config, args):
    super(TtyInjector, self).inject_config(config, args)
    config.append('-t')

## Instruction:
Use the proper none value
## Code After:

from base.hica_base import *

class TtyInjector(HicaInjector):
  def get_description(self):
    return 'Allocates a TTY for the process'

  def get_config_key(self):
    return 'io.hica.tty'

  def get_injected_args(self):
    return ((None, HicaValueType.NONE, None),)

  def inject_config(self, config, args):
    super(TtyInjector, self).inject_config(config, args)
    config.append('-t')
