Revision d46dbe0a lib/cmdlib/common.py
b/lib/cmdlib/common.py | ||
---|---|---|
423 | 423 |
|
424 | 424 |
if os_image is None: |
425 | 425 |
return None |
426 |
elif utils.IsUrl(os_image) or os.path.exists(os_image):
|
|
426 |
elif utils.IsUrl(os_image) or os.path.isabs(os_image):
|
|
427 | 427 |
return os_image |
428 | 428 |
else: |
429 | 429 |
raise errors.OpPrereqError("OS image must be a URL or an absolute path") |
Also available in: Unified diff