Revision 47988778 scripts/gnt-instance

b/scripts/gnt-instance
207 207
  if not opts.force:
208 208
    usertext = ("This will reinstall the instance %s and remove "
209 209
                "all data. Continue?") % instance_name
210
    if not opts._ask_user(usertext):
210
    if not AskUser(usertext):
211 211
      return 1
212 212

  
213 213
  op = opcodes.OpReinstallInstance(instance_name=instance_name,
......
232 232
    usertext = ("This will remove the volumes of the instance %s"
233 233
                " (including mirrors), thus removing all the data"
234 234
                " of the instance. Continue?") % instance_name
235
    if not opts._ask_user(usertext):
235
    if not AskUser(usertext):
236 236
      return 1
237 237

  
238 238
  op = opcodes.OpRemoveInstance(instance_name=instance_name)
......
394 394
    usertext = ("Failover will happen to image %s."
395 395
                " This requires a shutdown of the instance. Continue?" %
396 396
                (instance_name,))
397
    if not opts._ask_user(usertext):
397
    if not AskUser(usertext):
398 398
      return 1
399 399

  
400 400
  op = opcodes.OpFailoverInstance(instance_name=instance_name,

Also available in: Unified diff