Merge pull request 'refs #1908 remove refs to OGLOG' (#30) from remove-OGLOG into main
ogclone-engine/pipeline/tag This commit looks good
Details
ogclone-engine/pipeline/tag This commit looks good
Details
Reviewed-on: #30pull/31/head 0.7.0
commit
fb665fa4ca
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [0.7.0] - 2025-04-15
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
- Removed references to ogGlobals.OGLOG in python code
|
||||||
|
|
||||||
## [0.6.1] - 2025-04-15
|
## [0.6.1] - 2025-04-15
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -61,9 +61,8 @@ OGPYFUNCS = os.path.join (OPENGNSYS, 'functions')
|
||||||
OGSCRIPTS = os.path.join (OPENGNSYS, 'scripts')
|
OGSCRIPTS = os.path.join (OPENGNSYS, 'scripts')
|
||||||
OGIMG = os.path.join (OPENGNSYS, 'images')
|
OGIMG = os.path.join (OPENGNSYS, 'images')
|
||||||
OGCAC = os.path.join (OPENGNSYS, 'cache')
|
OGCAC = os.path.join (OPENGNSYS, 'cache')
|
||||||
OGLOG = '/var/log'
|
OGLOGFILE = '/var/log/clone-engine.log'
|
||||||
OGLOGFILE = f'{OGLOG}/clone-engine.log'
|
OGJSONLOGFILE = '/var/log/clone-engine.json.log'
|
||||||
OGJSONLOGFILE = f'{OGLOG}/clone-engine.json.log'
|
|
||||||
DEBUG = 'yes'
|
DEBUG = 'yes'
|
||||||
_path = os.environ['PATH'] + ':/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/opt/oglive/rootfs/opt/drbl/sbin'
|
_path = os.environ['PATH'] + ':/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/opt/oglive/rootfs/opt/drbl/sbin'
|
||||||
os.environ['PATH'] = ':'.join ([OGSCRIPTS, _path, OGAPI, OGBIN])
|
os.environ['PATH'] = ':'.join ([OGSCRIPTS, _path, OGAPI, OGBIN])
|
||||||
|
|
|
@ -21,7 +21,7 @@ if len (sys.argv) > 1:
|
||||||
#SERVERLOGDIR = unused
|
#SERVERLOGDIR = unused
|
||||||
|
|
||||||
# Fichero de listado: hard-IP
|
# Fichero de listado: hard-IP
|
||||||
HARDFILE = f'{ogGlobals.OGLOG}/hard-{ogGetIpAddress()}'
|
HARDFILE = f'/tmp/hard-{ogGetIpAddress()}'
|
||||||
out = ogListHardwareInfo()
|
out = ogListHardwareInfo()
|
||||||
with open (HARDFILE, 'w') as fd:
|
with open (HARDFILE, 'w') as fd:
|
||||||
fd.write (out)
|
fd.write (out)
|
||||||
|
|
|
@ -18,7 +18,7 @@ prog = os.path.basename (sys.argv[0])
|
||||||
|
|
||||||
def main (disk, par, reduced):
|
def main (disk, par, reduced):
|
||||||
ip = NetLib.ogGetIpAddress()
|
ip = NetLib.ogGetIpAddress()
|
||||||
softfile = f'{ogGlobals.OGLOG}/soft-{ip}-{disk}-{par}'
|
softfile = f'/tmp/soft-{ip}-{disk}-{par}'
|
||||||
software_list = InventoryLib.ogListSoftware (disk, par)
|
software_list = InventoryLib.ogListSoftware (disk, par)
|
||||||
|
|
||||||
if reduced:
|
if reduced:
|
||||||
|
|
Loading…
Reference in New Issue