virt-install: Default to --graphics even if DISPLAY is unset

This was a weird bit of logic that tries to be smart, but there isn't
a clear corrolation between DISPLAY being unset and whether the user
wants graphics or not.

Make the default consistent, some people may need to adjust to
--nographics
This commit is contained in:
Cole Robinson 2014-09-20 18:29:59 -04:00
parent e3de3d8b69
commit c26512926d

View File

@ -19,7 +19,6 @@
import argparse
import logging
import os
import re
import sys
import time
@ -241,10 +240,6 @@ def _determine_default_graphics(guest, default_override):
guest.skip_default_graphics = True
return
if "DISPLAY" not in os.environ.keys():
logging.debug("DISPLAY is not set: defaulting to nographics.")
guest.skip_default_graphics = True
def convert_old_graphics(guest, options, default_override=None):
vnc = options.vnc